diff --git a/Jenkinsfile b/Jenkinsfile
index 74af965187a2d82a7045194a3ab787772cc05d62..721a76bd7c6e35420e49a24819570a6d2216f1c0 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -37,6 +37,7 @@ pipeline {
         FORCE_COLOR = 0
         NO_COLOR = 1
         NX_DISABLE_DB = true
+        IMAGE_TAG = buildVersionName()
     }
 
     options {
@@ -91,7 +92,6 @@ pipeline {
             steps {
                 script {
                     FAILED_STAGE=env.STAGE_NAME
-                    IMAGE_TAG = buildVersionName()
 
                     configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
                         sh 'mvn --version'