-
Improvement
-
Resolution: Unresolved
-
Major
-
None
If a failure happens during the publisher process, the step fails but the build succeed.
For example:
... TestNG Reports Processing: START Looking for TestNG results report in workspace using pattern: **/testng-results.xml Saving reports... Processing '/var/jenkins_home/jobs/myjob/builds/1/testng/testng-results.xml' java.lang.NullPointerException Found matching files but did not find any TestNG results. ... Finished: SUCCESS
It would be great if there was an option, like for example the JUnit publisher, to fail the build if the step fails.
- links to
While this is a problem in freestyle jobs, this is also a problem in Pipeline:
TestNG don't find any file and don't fail the build. No easy way to decide to fail the build or no.
JUnit don't find any file and fails the build. This can be then controlled with a try...catch.