|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

It seems to me that all maven projects do not work because the test results are stored in "modules" and the junit-attachments are stored in the top level build.
I patched one source code line and the generated plugin works for our maven projects and the referenced test project "simple-failing-project".
Patch:
diff --git a/src/main/java/hudson/plugins/junitattachments/AttachmentPublisher.java b/src/main/java/hudson/plugins/junitattachments/AttachmentPublisher.java index 84ac90c..f98958e 100644 --- a/src/main/java/hudson/plugins/junitattachments/AttachmentPublisher.java +++ b/src/main/java/hudson/plugins/junitattachments/AttachmentPublisher.java @@ -34,7 +34,7 @@ } public static FilePath getAttachmentPath(AbstractBuild<?, ?> build) { - return new FilePath(new File(build.getRootDir().getAbsolutePath())) + return new FilePath(new File(build.getRootBuild().getRootDir().getAbsolutePath())) .child("junit-attachments"); }