This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      Artifacts of type "maven-plugin" should be archived by the "withMaven(){...}" as ".hpi" instead of ".maven-plugin".

      https://github.com/jenkinsci/pipeline-maven-plugin/blob/pipeline-maven-parent-2.0-beta-4/jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/reporters/GeneratedArtifactsReporter.java#L68

      https://github.com/jenkinsci/pipeline-maven-plugin/blob/pipeline-maven-parent-2.0-beta-4/jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/MavenSpyLogProcessor.java#L133

      public String getFileName() {
         return artifactId + "-" + version + ((classifier == null || classifier.isEmpty()) ? "" : "-" + classifier) + "." + type;
      }
      

      To reproduce

      node {
          withMaven(jdk: 'JDK8', maven: 'maven-3.3.9') {
             git "https://github.com/jenkinsci/maven-hpi-plugin.git"
             sh "mvn clean source:jar install"
          }
      }
      

            Assignee:
            Alvaro Lobato
            Reporter:
            Cyrille Le Clerc
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: