-
Bug
-
Resolution: Fixed
-
Major
-
Jenkins 2.289.3
xunit-plugin 3.0.2
In the case where no test files are found and a failure threshold is set, the build status is always set to failure, regardless of the skipNoTestFiles setting.
Xunit pipeline configuration
step([$class : 'XUnitPublisher', testTimeMargin: '3000', thresholdMode: 2, thresholds: [ [ $class : 'FailedThreshold', failureNewThreshold : '100', failureThreshold : '100', unstableNewThreshold: '100', unstableThreshold : '100' ], [ $class : 'SkippedThreshold', failureNewThreshold : '100', failureThreshold : '100', unstableNewThreshold: '100', unstableThreshold : '100' ] ], tools : [ [ $class : 'GoogleTestType', deleteOutputFiles : true, failIfNotNew : false, pattern : '*.xml', skipNoTestFiles : true, stopProcessingIfError: true ] ], sleepTime: 20 ])
Expected behavior
If no test files are found, the build status should not be changed. This behavior was present in version 2.4.0.
Actual behavior
The build status is always set to failure when no test files are found, even if all build stages are passing.
neither with freestyle job neither pipeline job I able to reproduce this issue. The build result is SUCCESS.
Please try with an empty project if you have the issue. Also in case previous build was failed and there are test failure the build does not fail, it is success