formation 11 months ago
parent
commit
6439cda4aa
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Jenkinsfile

+ 3 - 3
Jenkinsfile

@@ -12,11 +12,11 @@ pipeline {
             steps {
                 script {
                     echo "Environnement détecté : ${env.BRANCH_NAME}"
-                    if (env.BRANCH_NAME == 'dev') {
+                    if (env.BRANCH_NAME == 'test') {
                         echo "Déploiement sur DEV (${DEV_URL})"
-                    } else if (env.BRANCH_NAME == 'preprod') {
+                    } else if (env.BRANCH_NAME == 'dev') {
                         echo "Déploiement sur PREPROD (${PREPROD_URL})"
-                    } else if (env.BRANCH_NAME == 'prod') {
+                    } else if (env.BRANCH_NAME == 'master') {
                         echo "Déploiement sur PROD (${PROD_URL})"
                     } else {
                         error "Branche non prise en charge : ${env.BRANCH_NAME}"