Re: Force Jenkins job to be in unstable state when Junit tests fail...

2019-12-11 Thread Asi Hizkiahu
10x man 💪💪💪 On Tue, Dec 10, 2019 at 10:50 AM Mark Waite wrote: > Maven surefire plugin has an argument that tells it to not fail the build > when tests fail. Pass that argument. > > Use the Jenkins junit plugin to process and display the test results. It > will mark the build as "unstable" if

Re: Force Jenkins job to be in unstable state when Junit tests fail...

2019-12-10 Thread Mark Waite
Maven surefire plugin has an argument that tells it to not fail the build when tests fail. Pass that argument. Use the Jenkins junit plugin to process and display the test results. It will mark the build as "unstable" if tests fail. On Tue, Dec 10, 2019 at 9:47 AM Asi Hizkiahu wrote: > I am u

Force Jenkins job to be in unstable state when Junit tests fail...

2019-12-10 Thread Asi Hizkiahu
I am using Jenkins version 2.190.2 Using Junit 4.11 Using Maven 3.50 Using Java JDK 1.8 I have an issue, in Jenkins, when Junit tests fail, the job is in a failed state, not in unstable one. I tried from Java to do System.exit (2) when I recognized that tests where failing, but it didn't wo