[JIRA] (JENKINS-58233) Try/Catch can not catch "No such DSL method" Exception in Scripted Pipeline

1 view
Skip to first unread message

sinhvienbk13@gmail.com (JIRA)

unread,
Jun 27, 2019, 4:57:02 AM6/27/19
to jenkinsc...@googlegroups.com
Tommy Dang created an issue
 
Jenkins / Bug JENKINS-58233
Try/Catch can not catch "No such DSL method" Exception in Scripted Pipeline
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: Screenshot from 2019-06-27 15-42-41.png, Screenshot from 2019-06-27 15-42-57.png, Screenshot from 2019-06-27 15-43-10.png, Screenshot from 2019-06-27 15-43-23.png
Components: pipeline
Created: 2019-06-27 08:56
Environment: Local
Priority: Critical Critical
Reporter: Tommy Dang

I have script nested in try/catch block ! And one  CHANGELOGMESS env was assigned a showChane() (it's unknow method) . It's should be caught by try/catch block, but it not . All pipeline run everythign is oke , and "currentResult" is SUCCESS.

The pipeline run end pipeline and then show fail log ! It's happened in Scripted Pipeline. But in declarative pipeline it's not ! 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages