Pipeline job aborted by timeout or by user?

22 views
Skip to first unread message

Shiran

unread,
Sep 10, 2017, 7:05:17 AM9/10/17
to Jenkins Users
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!
Reply all
Reply to author
Forward
0 new messages