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}" } }