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 work. Is there a java way, maven command, job configuration, or a combination between them, that can help me? Help will be appreciated... -- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/4204be77-12a6-42fb-8e36-d4aeea09f25d%40googlegroups.com.