Hello, I have to make two different maven invocations to build my app and run some tests.
This is all within the same node/stage at the moment. 1) sh "${global.mvnCmd} -Dmaven.test.failure.ignore clean install " archive '**/*.ear, **/pom.xml' step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*.xml']) 2) sh "${global.mvnCmd} -f module/pom.xml -Dmaven.test.failure.ignore test" step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*.xml']) There are tests failing in the second call but the build/pipeline is not being marked as UNSTABLE even though the Test Results do show the failed tests. If I comment out 1) then the build/pipeline does get marked as UNSTABLE. So it appears the JUnitResultArchiver can only set the result once? The end goal is to run unit tests as part of 1) and exit if there are failed tests (I can check the build result which would haven been set by JUnitResultArchiver). If 1) is Ok we'll run longer tests with 2). But that will only work if JUnitResultArchiver can set the build result the a second time. Thanks Lionel. -- 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/a45630bb-fdf0-49eb-a163-9fb4198bda80%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.