Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-42179

withMaven doesn't discover the released artifacts when executing "mvn release"

XMLWordPrintable

      "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.

            cleclerc Cyrille Le Clerc
            cleclerc Cyrille Le Clerc
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: