changed so build tagging is not pushing all tags

This commit is contained in:
Ziver Koc 2016-12-19 17:07:45 +01:00
parent 2ac6b5e311
commit 454adf51a0

5
Jenkinsfile vendored
View file

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