-
New Feature
-
Resolution: Fixed
-
Major
-
None
-
any
Currently, when no test report is found by JUnit report plugin (ie fileset is empty), build fails.
In some cases, this behaviour is too constraining and implies stopping a cascade of builds for example, and this is not always the mist convenient behavior for a build stack.
This plugin should provide an option to select build status when fileset is empty:
- FAILED (Red): current default behaviour
- UNSTABLE (Orange)
- STABLE (Blue/Green)
This is an issue we have to build JBoss Tools, which we had to workaround by adding build steps, or adding dummy files to the fileset to avoid locking all builds in case of test failing.
- is duplicated by
-
JENKINS-22747 Add Job Configuration Option to NOT fail JUnit Report publish when no xml report files
-
- Resolved
-
What I'm really trying to avoid in Jenkins is to have two dozen checkboxes and text fields to cover every imaginable use case. Because Jenkins is a GUI tool primarily, every such added switch has a real cost. In my humble opinion, this feature falls on the wrong side of this trade-off.
I suppose what we can do is to define an extension point that abstracts away the mapping from the test result into the result code. The config UI can be smart enough not to show this option when no implementation is provided (and we will not ship any in the junit plugin), and in this mode it can retain the current behavior.
You can then develop an implementation of this extension point and achieve the semantics you prefer.