From 850ffa0c415ad6a7b1975af32d88f2c990b8e84d Mon Sep 17 00:00:00 2001
From: Benjamin Bertrand <benjamin.bertrand@esss.se>
Date: Fri, 8 Sep 2017 09:32:18 +0200
Subject: [PATCH] Fix conditional expression to push image

---
 Jenkinsfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 4fdb8bd..655d801 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -30,7 +30,7 @@ pipeline {
         }
         stage('Push') {
             when {
-                expression { "$GIT_TAG" != "" }
+                not { environment name: 'GIT_TAG', value: '' }
             }
             steps {
                 sh 'make tag'
-- 
GitLab