-
Bug
-
Resolution: Cannot Reproduce
-
Minor
-
None
-
Jenkins 2.107.2
pipeline { stages { stage("Test") { script { for (i in list){ 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