diff --git a/vars/cpkg.groovy b/vars/cpkg.groovy index 3033e73..def66fe 100644 --- a/vars/cpkg.groovy +++ b/vars/cpkg.groovy @@ -85,11 +85,11 @@ def call(Map params = [:]) { tagComment += ' [ci skip]' } - sh("git tag -a '${tag}' -m '${tagComment}'") + sh("git tag -f -a '${tag}' -m '${tagComment}'") // Push tag if (!skipPush) { - sh("git push --tags") + sh("git push --tags -f") } else { println("Skipping push. Set skipPush param to 'true' to enable remote repository update.") }