Added force for pushing tags.
Change-Id: I68254e2e0260add611c5c48b8e34d93bf1eb98b6
Related: PROD-19330
diff --git a/src/com/mirantis/mk/Git.groovy b/src/com/mirantis/mk/Git.groovy
index 9e3c460..d20c159 100644
--- a/src/com/mirantis/mk/Git.groovy
+++ b/src/com/mirantis/mk/Git.groovy
@@ -198,10 +198,10 @@
}
}
if (followTags == true) {
- ssh.agentSh "git push target --tags"
+ ssh.agentSh "git push -f target --tags"
if (pushSourceTags == true) {
- ssh.agentSh "git push origin --tags"
+ ssh.agentSh "git push -f origin --tags"
}
}
sh "git remote rm target"