This is an automated email from the ASF dual-hosted git repository.
rantunes pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-runtimes.git
The following commit(s) were added to refs/heads/main by this push:
new f142256d79 Fix Git tag created in the weekly deploy Jenkins Job
execution (#3661)
f142256d79 is described below
commit f142256d79a62360414f8730a0194764deb9a5c8
Author: Rodrigo Antunes <[email protected]>
AuthorDate: Tue Sep 10 10:17:41 2024 -0300
Fix Git tag created in the weekly deploy Jenkins Job execution (#3661)
---
.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 e2c1b95886..194c59ab6a 100644
--- a/.ci/jenkins/Jenkinsfile.weekly.deploy
+++ b/.ci/jenkins/Jenkinsfile.weekly.deploy
@@ -140,7 +140,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]