-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Windows Server 2003
I have a parameterised build that allows me to skip the Unit Tests as required, but the build fails when this is used because:
With the checkboxes:
"Skip if there are no test files" checked
"Fail the build if the results were not updated this run" unchecked
I would expect the absence of the test files not to fail the build.
BUILD SUCCESSFUL Total time: 16 minutes 34 seconds [xUnit] [INFO] - Starting to record. [xUnit] [INFO] - Processing PHPUnit-3.x (default) [xUnit] [INFO] - [PHPUnit-3.x (default)] - No test report file(s) were found with the pattern 'build\*\report\*.xml' relative to 'C:\jenkins-node-workspace\workspace\Reports-Package' for the testing framework 'PHPUnit-3.x (default)'. Did you enter a pattern relative to the correct directory? Did you generate the result report(s) for 'PHPUnit-3.x (default)'? [xUnit] [WARNING] - No test reports found for the metric 'PHPUnit' with the resolved pattern 'build\*\report\*.xmlIgnore. [xUnit] [INFO] - Setting the build status to FAILURE [xUnit] [INFO] - Stopping recording. Build step 'Publish xUnit test result report' changed build result to FAILURE Archiving artifacts Sending e-mails to: xxx Finished: FAILURE
Code changed in jenkins
User: Gregory Boissinot
Path:
src/main/java/org/jenkinsci/plugins/xunit/XUnitProcessor.java
http://jenkins-ci.org/commit/xunit-plugin/90224cdd4c458c6a43b9a7cee54a36f7b44e4460
Log:
Fix
JENKINS-18443