Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: pipeline-maven-plugin
-
Labels:None
-
Environment:pipeline-maven-plugin 2.0.2
-
Similar Issues:
Description
The "withMaven()' wrapper sees the "generated artifact" of "mvn test" as a file that can be archived and fingerprinted when it is just the folder "${project.build.output}.
XML fragment of the MAven Event Spy report that is causing confusion
<ExecutionEvent type="ProjectSucceeded" class="org.apache.maven.lifecycle.internal.DefaultExecutionEvent" _time="2017-04-19 23:39:04.293"> <project baseDir="/path/to/workspace" file="/path/to/workspace/pom.xml" groupId="jenkins.mvn.test" name="mono-module-maven-app" artifactId="mono-module-maven-app" version="0.1-SNAPSHOT"> <build sourceDirectory="/path/to/workspace/src/main/java" directory="/path/to/workspace/target"/> </project> <no-execution-found/> <artifact extension="jar" groupId="jenkins.mvn.test" artifactId="mono-module-maven-app" id="jenkins.mvn.test:mono-module-maven-app:jar:0.1-SNAPSHOT" type="jar" version="0.1-SNAPSHOT"> <file>/path/to/workspace/target/classes</file> </artifact> <attachedArtifacts/> </ExecutionEvent>
Attachments
Issue Links
- blocks
-
JENKINS-43678 Exception archiving and fingerprinting MavenArtifact
-
- Closed
-
- is related to
-
JENKINS-44688 Pipeline Maven Plugin indiscriminately archives files
-
- Closed
-
Code changed in jenkins
User: Cyrille Le Clerc
Path:
jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/reporters/GeneratedArtifactsReporter.java
jenkins-plugin/src/test/java/org/jenkinsci/plugins/pipeline/maven/WithMavenStepOnMasterTest.java
jenkins-plugin/src/test/resources/org/jenkinsci/plugins/pipeline/maven/test/test_maven_projects/maven_hpi_project/.gitignore
jenkins-plugin/src/test/resources/org/jenkinsci/plugins/pipeline/maven/test/test_maven_projects/maven_hpi_project/pom.xml
jenkins-plugin/src/test/resources/org/jenkinsci/plugins/pipeline/maven/test/test_maven_projects/maven_hpi_project/src/main/java/com/example/MonoModuleMavenApp.java
jenkins-plugin/src/test/resources/org/jenkinsci/plugins/pipeline/maven/test/test_maven_projects/maven_hpi_project/src/test/java/com/example/MonoModuleMavenAppTest.java
jenkins-plugin/src/test/resources/org/jenkinsci/plugins/pipeline/maven/test/test_maven_projects/maven_jar_project/.gitignore
jenkins-plugin/src/test/resources/org/jenkinsci/plugins/pipeline/maven/test/test_maven_projects/maven_jar_project/pom.xml
jenkins-plugin/src/test/resources/org/jenkinsci/plugins/pipeline/maven/test/test_maven_projects/maven_plugin_project/.gitignore
jenkins-plugin/src/test/resources/org/jenkinsci/plugins/pipeline/maven/test/test_maven_projects/maven_plugin_project/pom.xml
jenkins-plugin/src/test/resources/org/jenkinsci/plugins/pipeline/maven/test/test_maven_projects/maven_plugin_project/src/main/java/jenkins/mvn/test/App.java
jenkins-plugin/src/test/resources/org/jenkinsci/plugins/pipeline/maven/test/test_maven_projects/maven_plugin_project/src/test/java/jenkins/mvn/test/AppTest.java
http://jenkins-ci.org/commit/pipeline-maven-plugin/5cafe419618d7db7b039425acc86451be603535e
Log:
JENKINS-43714fixe withMaven thinks that "mvn test" generates a jar file causing a FileNotFoundException trying to archive itAdd integration tests with maven-plugin-project and Jenkins-hpi-project
Compare: https://github.com/jenkinsci/pipeline-maven-plugin/compare/896afe039b8e^...5cafe419618d