[JIRA] (JENKINS-60187) JUnit Plugin fails if test report file (XML) is not in the workspace folder

4 views
Skip to first unread message

albertosavila@gmail.com (JIRA)

unread,
Nov 15, 2019, 10:13:02 AM11/15/19
to jenkinsc...@googlegroups.com
Alberto Sanchez created an issue
 
Jenkins / Bug JENKINS-60187
JUnit Plugin fails if test report file (XML) is not in the workspace folder
Issue Type: Bug Bug
Assignee: Unassigned
Components: junit-plugin
Created: 2019-11-15 15:12
Environment: Jenkins ver. 2.190.2
Windows 10
JUnit Plugin 1.28
Labels: junit-plugin path bug
Priority: Major Major
Reporter: Alberto Sanchez

In Pipeline jobs, the step to archive the JUnit-formatted test results fails if the files are not located in the workspace folder.

Example that fails (Bug):

  • Test Result XML is located in $WORKSPACE\test_report\report.xml
  • junit env.WORKSPACE+'\test_report\report.xml'
  • Output: No test report files were found. Configuration error?

Example that works:

  • Test Result XML is located in $WORKSPACE\report.xml
  • junit 'report.xml'
  • Output: {{Recording test results }}(test results are successfully uploaded)
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

albertosavila@gmail.com (JIRA)

unread,
Nov 15, 2019, 10:22:02 AM11/15/19
to jenkinsc...@googlegroups.com
Alberto Sanchez updated an issue
Change By: Alberto Sanchez
In Pipeline jobs, the step to archive the JUnit-formatted test results fails if the files are not located in the workspace folder.

The bug has been found when using JUnit plugin in a post stage block( {{post\{ always{ junit ...} }}} ). The stage is configured to run on an agent (slave, not in master) that runs windows. The master runs on a Linux.

*Example that fails (Bug):*
* Test Result XML is located in $WORKSPACE\test_report\report.xml
* {{junit env.WORKSPACE+'\test_report\report.xml'}}
* Output: {{No test report files were found. Configuration error?}}

*Example that works:*
* Test Result XML is located in $WORKSPACE\report.xml
* {{junit 'report.xml'}}
* Output:
\ {{Recording test results }}(test results are successfully uploaded)
Reply all
Reply to author
Forward
0 new messages