commit | ae6249fc9c847de06a2a4cef8a4b1ef713813f82 | [log] [tgz] |
---|---|---|
author | Alexander Evseev <aevseev@mirantis.com> | Mon Oct 08 18:31:19 2018 +0200 |
committer | Alexander Evseev <aevseev@mirantis.com> | Mon Oct 08 16:33:19 2018 +0000 |
tree | 144e5e04657bb62210f810c5176cb03b1aacedfe | |
parent | 0515164e41e5e433dd83a45e6fcd27783933f4d5 [diff] [blame] |
Use current ref when tagging in tag-git-repos.groovy Rely to git fetch && git checkout FETCH_HEAD to choose ref for tagging. Change-Id: I735cfa8e3d1fc5fa2e5055bb29fb977d0cca55c3 See: https://mirantis.jira.com/browse/PROD-23781
diff --git a/tag-git-repos.groovy b/tag-git-repos.groovy index 8e3a918..68fcdcd 100644 --- a/tag-git-repos.groovy +++ b/tag-git-repos.groovy
@@ -32,7 +32,7 @@ ], ]) dir(repoName) { - sh "git tag -f -a ${tag} ${ref} -m \"Release of mcp version ${tag}\"" + sh "git tag -f -a ${tag} -m \"Release of mcp version ${tag}\"" sshagent([credentials]) { sh "git push -f origin ${tag}:refs/tags/${tag}" }