This is an automated email from the ASF dual-hosted git repository.
porcelli pushed a commit to branch seed-optaplanner-10.2.x
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-pipelines.git
The following commit(s) were added to refs/heads/seed-optaplanner-10.2.x by
this push:
new ea8c8a28 try: fix planner release pipeline
ea8c8a28 is described below
commit ea8c8a28ffd2909b47ce92fd27aa66a41b7ebbbf
Author: Alex Porcelli <[email protected]>
AuthorDate: Sat Mar 21 13:03:41 2026 -0400
try: fix planner release pipeline
---
jenkins-pipeline-shared-libraries/vars/maven.groovy | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/jenkins-pipeline-shared-libraries/vars/maven.groovy
b/jenkins-pipeline-shared-libraries/vars/maven.groovy
index b8382fb5..0205bb91 100644
--- a/jenkins-pipeline-shared-libraries/vars/maven.groovy
+++ b/jenkins-pipeline-shared-libraries/vars/maven.groovy
@@ -74,14 +74,17 @@ def mvnVersionsUpdateParent(String newVersion, boolean
allowSnapshots = false) {
mvnVersionsUpdateParent(new MavenCommand(this), newVersion, allowSnapshots)
}
-def mvnVersionsUpdateParent(MavenCommand mvnCmd, String newVersion, boolean
allowSnapshots = false) {
- mvnCmd.clone()
+def mvnVersionsUpdateParent(MavenCommand mvnCmd, String newVersion, boolean
allowSnapshots = false, boolean skipResolution = false) {
+ def cmd = mvnCmd.clone()
.withOptions(['-N', '-e'])
.withProperty('full')
.withProperty('parentVersion', "[${newVersion}]")
.withProperty('allowSnapshots', allowSnapshots)
.withProperty('generateBackupPoms', false)
- .run('versions:update-parent')
+ if (skipResolution) {
+ cmd.withProperty('skipResolution', true)
+ }
+ cmd.run('versions:update-parent')
}
def mvnVersionsUpdateChildModules(boolean allowSnapshots = false) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]