Detecting build abort in pipeline

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Detecting build abort in pipeline

raja.nasrallah
Hi,

In the following code, Is it possible to find if the build is aborted by user or grunt failed

try{
    .....
     sh "grunt voter"
}
catch(ex){

}

The problem is that exception ex in both cases is always hudson.AbortException

Kind regards,
Raja

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ef339ad5-d2bd-40a6-bd17-d2a50456251b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.