The JUnit plugin cannot set the build result to failed. The unstable state is a feature of Jenkins.
(If you need to set the build to failed you can do this with your build tool, but I would not recommend to do it) > Am 27.04.2019 um 00:27 schrieb [email protected]: > > Hi, > > So I am using the Jenknis JUnit plugin to parse the test results. I have a > job which has just one test and it fails all the time however, the JUnit > plugin marks the job as unstable and not failed. Any reasons why? I have > tried to set the Health report amplification factor to 1, 0.1, 0.0 but no > luck. > > How can I get the JUnit to fail the build? > > Thanks, > --Ishan > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/907f0d07-ed2d-427e-9649-ddb1caebb457%40googlegroups.com > > <https://groups.google.com/d/msgid/jenkinsci-users/907f0d07-ed2d-427e-9649-ddb1caebb457%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CA1191AE-7409-441F-800B-5FC3DB265E90%40gmail.com. For more options, visit https://groups.google.com/d/optout.
