I finally found this (https://issues.jenkins-ci.org/browse/JENKINS-26133) 
which addresses my issue.

On Thursday, May 19, 2016 at 1:55:24 PM UTC-5, John Engelman wrote:
>
> Is there a way to perform conditional logic in my pipeline based on the 
> exit code from a 'sh' step?
> Basically, I want to execute different behavior based on that. In this 
> case it is Terraform which will output different exit codes based on the 
> results of a 'terraform plan'
>

-- 
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/21a894c4-597d-4937-92e1-d7d71c66186d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to