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

withMaven scripted pipeline skips artifact publishing with v1330

XMLWordPrintable

    • 1332.v36ca_27d24383

      With the version bump from 1322.v9ef317a_3e0a_9 to 1330.v18e473854496, the plugin is skipping artifact publishing.

      With a scripted pipeline, roughly as follows:

      String jdk8Path = tool 'jdk8'
      List javaEnv = ["JAVA_HOME=${jdk8Path}"]
      withEnv(javaEnv) {
          stage('Build') {
              echo "Set JAVA_HOME=${env.JAVA_HOME} using withEnv"
              withMaven {
                  sh "./mvnw clean install"
              }
          }
      }
      

      with 1322, I see in the build log:

       [withMaven] artifactsPublisher - Archive artifact pom.xml under test/example-maven-project/1.0-SNAPSHOT/example-maven-project-1.0-SNAPSHOT.pom
       [withMaven] artifactsPublisher - Archive artifact target/example-maven-project-1.0-SNAPSHOT.jar under test/example-maven-project/1.0-SNAPSHOT/example-maven-project-1.0-SNAPSHOT.jar
      ...
      ...plus other publishers

      With 1330, those sections are completely missing.

      Thanks in advance.

            bguerin Benoit
            corporate_gadfly Corporate
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: