From bc8b1ec7d3e36c422d9d0ec1bc7ba6911174d014 Mon Sep 17 00:00:00 2001 From: William Petit Date: Mon, 12 Sep 2022 18:18:22 +0200 Subject: [PATCH] cpkg: force tag --- vars/cpkg.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.") }