You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by ra...@apache.org on 2024/09/10 13:17:28 UTC
(incubator-kie-optaplanner) branch main updated: NO-ISSUE: Fix Git tag creation in the weekly deploy Jenkins job execution (#3124)
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 <co...@rodrigoantunes.com.br>
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: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org