From a9bbdeb3ba13901e5d5e4758ddc9dd0328e6e736 Mon Sep 17 00:00:00 2001 From: Rodrigo Antunes Date: Mon, 27 May 2024 14:44:42 -0300 Subject: [PATCH] Create a new tag --- .ci/jenkins/Jenkinsfile.deploy | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.ci/jenkins/Jenkinsfile.deploy b/.ci/jenkins/Jenkinsfile.deploy index 5f9a17bbe..a13ab9f08 100644 --- a/.ci/jenkins/Jenkinsfile.deploy +++ b/.ci/jenkins/Jenkinsfile.deploy @@ -213,6 +213,12 @@ pipeline { } String prLink = githubscm.createPR(commitMsg, prBody, getBuildBranch(), getGitAuthorPushCredsId()) deployProperties["${getRepoName()}.pr.link"] = prLink + + + // Create a new tag + githubscm.setUserConfigFromCreds(getGitAuthorPushCredsId()) + githubscm.tagRepository(getProjectVersion()) + githubscm.pushRemoteTag('origin', getProjectVersion(), getGitAuthorPushCredsId()) } } } @@ -227,6 +233,7 @@ pipeline { } } } + stage('Finalize') { steps { script {