Detecting build abort in pipeline

25 views
Skip to first unread message

Raja Nasrallah

unread,
Oct 25, 2017, 11:16:53 AM10/25/17
to Jenkins Users
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
Reply all
Reply to author
Forward
0 new messages