From 454adf51a06b15b88e83b0956e162e03514f4876 Mon Sep 17 00:00:00 2001 From: Ziver Koc Date: Mon, 19 Dec 2016 17:07:45 +0100 Subject: [PATCH] changed so build tagging is not pushing all tags --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1cd695d..a28b78a 100755 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,8 +28,9 @@ node { // Tag artifact withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'f8e5f6c6-4adb-4ab2-bb5d-1c8535dff491', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) { - sh "git tag BUILD-" + env.BUILD_ID - sh "git push 'https://${USERNAME}:${PASSWORD}@repo.koc.se/hal.git' --tags" + tag = "BUILD-" + env.BUILD_ID + sh "git tag ${tag}" + sh "git push 'https://${USERNAME}:${PASSWORD}@repo.koc.se/hal.git' ${tag}" } }