-
Bug
-
Resolution: Fixed
-
Major
-
None
Some plugins (e.g. maven-helper-plugin) can attach arbitrary artifacts from files that are stored under different paths but use the same file name.
When the artifacts have unique maven coordinates - e.g. use the same groupId, artifactId, version, but a different classifier - Jenkins attempts to archive them based on the file name only. In this case, any archived artifact will override any previously archived artifact.
This conflict can be avoided by using the canonical name of the artifact for archiving, which will produce unique artifact files.
- is related to
-
JENKINS-9466 Provide maven build.finalName in the downloadable artifacts name
-
- Open
-
Code changed in jenkins
User: Tomer Cohen
Path:
maven-plugin/src/main/java/hudson/maven/reporters/MavenArtifact.java
http://jenkins-ci.org/commit/jenkins/ca56a32e16b97a8dae2e76718144ea00b24f51b1
Log:
[FIXED JENKINS-9122] - Archived artifacts overridden when having multiple produced artifacts under different paths but with the same file name