Skip to content

Commit 4587766

Browse files
committed
[RelEng] Force creation of tags in promotion pipeline
Follow-up on: - #3291
1 parent 6f966ce commit 4587766

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

JenkinsJobs/Releng/promoteBuild.jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ pipeline {
146146
# Change to SSH, if the configured URL uses HTTPS (we can only push with SSH)
147147
pushURL=$(echo $pushURL|sed --expression 's|https://github.com/|[email protected]:|')
148148
fi
149-
git tag -a -m "${SIGNOFF_BUG}" ${TAG} HEAD
150-
# git push fails if the tag already exists
149+
# Enforce the (re-)creation of the tag in case of a very late respin
150+
git tag --force -a -m "${SIGNOFF_BUG}" ${TAG} HEAD
151151
git push --force --verbose ${pushURL} tag ${TAG}
152152
}
153153
tagBuild

0 commit comments

Comments
 (0)