Skip to content

updateParent ERRORs when plugin is executed via Jenkins CI (mvn io.github.pmckeown...) #449

Discussion options

You must be logged in to vote

It's because dependency-track.updateParent is set to true, which instructs the plugin to update the parent. However, neither a parent name (as ${project.parent.artifactId} resolves to a blank value) or parent UUID is provided. So the plugin cannot update the parent (which it is instructed to do).

The updateParent setting requires a boolean value. In maven expressions are coerced to the specific type. For boolean values the string value must be true (case insensitive). Sadly there is no expression which you could use which would return true if the project has a parent.

You could make use of maven's help:evaluate and a sh step capturing the out in jenkins:

[[ $(mvn help:evaluate -q -DforceS…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@software-testing-professional
Comment options

Answer selected by software-testing-professional
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants