[JIRA] (JENKINS-51263) try-catch is not working in declarative pipeline
Title: Message Title Andrew Bayer commented on JENKINS-51263 Re: try-catch is not working in declarative pipeline Can you please include the log? Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-51263) try-catch is not working in declarative pipeline
Title: Message Title Andrew Bayer updated an issue Jenkins / JENKINS-51263 try-catch is not working in declarative pipeline Change By: Andrew Bayer Component/s: pipeline Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-51263) try-catch is not working in declarative pipeline
Title: Message Title Oleg Nenashev updated an issue Jenkins / JENKINS-51263 try-catch is not working in declarative pipeline Change By: Oleg Nenashev Component/s: pipeline-model-definition-plugin Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-51263) try-catch is not working in declarative pipeline
Title: Message Title Viachaslau Kabak updated an issue Jenkins / JENKINS-51263 try-catch is not working in declarative pipeline Change By: Viachaslau Kabak {code:java}pipeline { stages { stage("Test") { script { for (i in list){ try { echo "Any code with error" } catch(err) { echo "Error" } } } } } } {code} So the try-catch is not working in script section of declarative pipeline. It throws an exception and pipeline fails Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-51263) try-catch is not working in declarative pipeline
Title: Message Title Viachaslau Kabak updated an issue Jenkins / JENKINS-51263 try-catch is not working in declarative pipeline Change By: Viachaslau Kabak {code:java} pipeline \ { stages \ { stage("Test") \ { script \ { try \ { echo "Any code with error" } catch(err) \ { echo "Error" } } } } } {code } So the try-catch is not working in script section of declarative pipeline. It throws an exception and pipeline fails Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-51263) try-catch is not working in declarative pipeline
Title: Message Title Viachaslau Kabak created an issue Jenkins / JENKINS-51263 try-catch is not working in declarative pipeline Issue Type: Bug Assignee: Unassigned Components: pipeline Created: 2018-05-11 12:36 Environment: Jenkins 2.107.2 Priority: Minor Reporter: Viachaslau Kabak pipeline { stages { stage("Test") { script { try { echo "Any code with error" } catch(err) { echo "Error" } } } } } So the try-catch is not working in script section of declarative pipeline. It throws an exception and pipeline fails Add Comment