Pipeline job aborted by timeout or by user?

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

Pipeline job aborted by timeout or by user?

Shiran
Hello,

How can I distinguish between a job that was aborted by timeout and a job that was aborted by a user (clicking the red X button)?

try {
          ....
  
 } catch (hudson.AbortException e) {
            //catching an exception if job was aborted - both by user/timeout

} catch (Exception err) {
        .....    
}


Thanks!

--
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/e6a6ccbe-ee14-441a-9b8a-e00009fbea90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.