I have a question concerning readMavenPom
(Link to doc) utility from Jenkins pipelines.
I have a project with a pom.xml
where no groupId
is defined but this pom.xml
has a parent pom with a a defined groupId
. (It could happen that, even this parent doesn't have a defined groupId
and is the parent.parent the one that has it).
Is there a way to get the, let's say, effective groupId
in an elegant way?
I'm currently getting null
with the getGroupId() method (or property accessor .groupId
)
NOTE: With elegant way I mean, not looping into parents and checking if groupId is not null.
Thanks in advance.