In scripted pipeline the use of try/catch/finaly allows a stage to be 
executed even though the previous stage has failed, let say unit tests, 
checkstyles have failed and we still want to execute a sonaqube analysis 
(why would we want to do that is another question for another group).

In the declarative pipeline model however if the testing stages is executed 
and it turns out that some tests have failed the next stage is skipped. I 
was wondering if there is a way to that in declarative pipeline? 

The only thing i see is worth exploring is making sure the sh command that 
execute the tests steps doesn't return an exit code that is a non zero, 
which should allow the test to continue but i am wondering if jenkins will 
still report a failed build?

Omeka

-- 
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/0d2f2c33-31d8-49a3-ad2a-64241b20bda6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to