-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
Component/s: pipeline-maven-plugin
Artifacts of type "maven-plugin" should be archived by the "withMaven(){...}" as ".hpi" instead of ".maven-plugin".
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"
}
}