tkobayas commented on code in PR #1987:
URL:
https://github.com/apache/incubator-kie-kogito-examples/pull/1987#discussion_r1696411859
##########
.ci/jenkins/Jenkinsfile.setup-branch:
##########
@@ -93,9 +93,21 @@ pipeline {
steps {
script {
dir(getRepoName()) {
- def oldKogitoVersion = readMavenPom(file:
'pom.xml').version
+ def pom = readMavenPom(file: 'pom.xml');
+ def oldKogitoVersion = pom.version
+ if (oldKogitoVersion == null) {
+ echo "pom version is null. Using parent pom
version"
+ oldKogitoVersion = pom.parent.version
+ }
Review Comment:
I noticed that `oldKogitoVersion` was `null` in past logs because
`readMavenPom` cannot resolve the parent version (I cannot find a reason from
logs). But locally confirmed that `pom.parent.version` returns the expected
version.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]