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-optaplanner.git
The following commit(s) were added to refs/heads/main by this push:
new 22c3b763d1 NO-ISSUE: Fix Git tag creation in the weekly deploy Jenkins
job execution (#3124)
22c3b763d1 is described below
commit 22c3b763d175599cf4a6a9c3b32a2f45ed0adc1e
Author: Rodrigo Antunes <[email protected]>
AuthorDate: Tue Sep 10 10:17:23 2024 -0300
NO-ISSUE: Fix Git tag creation in the weekly deploy Jenkins job execution
(#3124)
* Fix Git tag created in the weekly deploy Jenkins Job execution
* Fix typo
---
.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 dcde5ce02e..58d3fda179 100644
--- a/.ci/jenkins/Jenkinsfile.weekly.deploy
+++ b/.ci/jenkins/Jenkinsfile.weekly.deploy
@@ -158,7 +158,13 @@ pipeline {
script {
projectVersion = getProjectVersion(false)
dir(optaplannerFolder) {
-
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]