Skip to content

Commit

Permalink
[SRVLOGIC-286] fix issue when extracting project version when there i…
Browse files Browse the repository at this point in the history
…s no pom.xml available (like operator repo)
  • Loading branch information
rgdoliveira committed Jul 23, 2024
1 parent c6cab11 commit f139138
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .ci/jenkins/Jenkinsfile.prod.nightly
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,10 @@ pipeline {
def sanitizedProjectName = f.replaceAll('/', '_').replaceAll('-', '_')
def buildScript = env["PME_BUILD_SCRIPT_${sanitizedProjectName}"]
def pomPath = maven.getProjectPomFromBuildCmd(buildScript)
if (new File(pomPath).exists()) {
try {
env["VERSION_${f}"] = maven.mvnGetVersionProperty(new MavenCommand(this).withProperty('productized'), 'project.version', pomPath)
} catch (err) {
echo "Skipping to get version of project ${projectName} as no pom.xml was found"
}
}
}
Expand Down

0 comments on commit f139138

Please sign in to comment.