diff --git a/Jenkinsfile b/Jenkinsfile
index e57c6f27d05f101bcf7953637425db01bf768a9c..de5b29eae48996a466458ffbcca2d7ab9d8da732 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -33,7 +33,7 @@ pipeline {
         stage('Printing All Global Variables') {
             steps {
                 script {
-                    if(env.BRANCH_NAME == 'main') {
+                    if(APP_ENV == 'main') {
                         bat """
                         echo "**** Nous sommes sur l'nevironnement ${APP_ENV}"
                         """