Complete the code to start a try block in a Jenkins pipeline script.
try [1]
In Jenkins pipeline scripts, the try block starts with a curly brace {.
Complete the code to catch an exception named 'err' in a Jenkins pipeline.
catch ([1]) {The catch block defines the exception variable name inside parentheses. Here, it is err.
Fix the error in the finally block syntax in this Jenkins pipeline snippet.
finally [1]The finally block must start with a curly brace { to enclose its code.
Complete the code to complete the try-catch structure in a Jenkins pipeline.
try {
// code
} catch ({BLANK_2}}) {The try block starts with { and the catch block catches the exception variable err.
Complete the code to complete a try-catch block in a Jenkins pipeline.
try { echo 'Running try block' } catch ([1]) { echo "Caught: ${err}" }
The try block and catch block start with curly braces {. The catch block catches the exception variable err.