This is an automated email from the ASF dual-hosted git repository.
tiagobento pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-apps.git
The following commit(s) were added to refs/heads/main by this push:
new 13ac288e1 NO-ISSUE: Fix Git tag creation in the weekly deploy Jenkins
job execution (#2098)
13ac288e1 is described below
commit 13ac288e1ab939d79aa0581bc4ecb4e1b9a59805
Author: Rodrigo Antunes <[email protected]>
AuthorDate: Tue Sep 10 11:13:27 2024 -0300
NO-ISSUE: Fix Git tag creation in the weekly deploy Jenkins job execution
(#2098)
---
.ci/jenkins/Jenkinsfile.weekly.deploy | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/.ci/jenkins/Jenkinsfile.weekly.deploy
b/.ci/jenkins/Jenkinsfile.weekly.deploy
index 3805b9d50..472f9bee8 100644
--- a/.ci/jenkins/Jenkinsfile.weekly.deploy
+++ b/.ci/jenkins/Jenkinsfile.weekly.deploy
@@ -107,7 +107,13 @@ pipeline {
script {
projectVersion = getProjectVersion(false)
dir(getRepoName()) {
-
githubscm.setUserConfigFromCreds(getGitAuthorPushCredsId())
+ if (githubscm.isThereAnyChanges()) {
+ def commitMsg = "[${getBuildBranch()}] Update
version to ${projectVersion}"
+
githubscm.setUserConfigFromCreds(getGitAuthorPushCredsId())
+ githubscm.commitChanges(commitMsg, {
githubscm.findAndStageNotIgnoredFiles('pom.xml') })
+ } else {
+ println '[WARN] no changes to commit'
+ }
githubscm.tagRepository(projectVersion)
githubscm.pushRemoteTag('origin', projectVersion,
getGitAuthorPushCredsId())
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]