[JIRA] [junit-attachments] (JENKINS-19430) The files are not visible from either the test or the class page

2014-07-07 Thread neum...@softwareloft.de (JIRA)














































Marco Neumann
 commented on  JENKINS-19430


The files are not visible from either the test or the class page















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");
 }





























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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [junit-attachments] (JENKINS-19430) The files are not visible from either the test or the class page

2013-11-22 Thread dfhin...@gmail.com (JIRA)














































Daniel Hinton
 commented on  JENKINS-19430


The files are not visible from either the test or the class page















I'm seeing the same issue:
"This image failed to load."

Built with: mvn -e clean install -Dtest=QA_Test



























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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.