changed so build tagging is not pushing all tags
This commit is contained in:
parent
2ac6b5e311
commit
454adf51a0
1 changed files with 3 additions and 2 deletions
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
|
@ -28,8 +28,9 @@ node {
|
||||||
// Tag artifact
|
// Tag artifact
|
||||||
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'f8e5f6c6-4adb-4ab2-bb5d-1c8535dff491',
|
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'f8e5f6c6-4adb-4ab2-bb5d-1c8535dff491',
|
||||||
usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) {
|
usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) {
|
||||||
sh "git tag BUILD-" + env.BUILD_ID
|
tag = "BUILD-" + env.BUILD_ID
|
||||||
sh "git push 'https://${USERNAME}:${PASSWORD}@repo.koc.se/hal.git' --tags"
|
sh "git tag ${tag}"
|
||||||
|
sh "git push 'https://${USERNAME}:${PASSWORD}@repo.koc.se/hal.git' ${tag}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue