-
Bug
-
Resolution: Fixed
-
Minor
-
None
"withMaven()" doesn't discover the released artifacts generated by "mvn release:prepare release:perform".
It's because the Maven Event Spy is passed by a "-Dmaven.ext.class.path=" parameter of the "mvn" invocation and the "sub" call of "mvn" doesn't inherit of the variable.
We should instead pass "-Dmaven.ext.class.path=" and "-Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder=..." using the "JAVA_TOOL_OPTIONS" environment variable.