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-drools.git
The following commit(s) were added to refs/heads/main by this push:
new 01e9006107 Fix Git tag created in the weekly deploy Jenkins Job
execution (#6077)
01e9006107 is described below
commit 01e9006107e769d973dfaf2678dde9d086f88324
Author: Rodrigo Antunes <[email protected]>
AuthorDate: Tue Sep 10 10:17:11 2024 -0300
Fix Git tag created in the weekly deploy Jenkins Job execution (#6077)
---
.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 274d11e302..9f941f80f3 100644
--- a/.ci/jenkins/Jenkinsfile.weekly.deploy
+++ b/.ci/jenkins/Jenkinsfile.weekly.deploy
@@ -115,7 +115,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]