Hi,
i want to add a try/catch/finaly block in my pipeline script.
try {
println(" Release ${components.size()} components in parallel : ${componentListToPrint} \n")
parallel parallelBuild
} catch(err) {
echo "Exception thrown:\n ${err}"
echo "Stacktrace:"
err.printStackTrace()
currentBuild.result = 'FAILURE'
} finally {
return componentsReleased
}The problem is that i'm not able to print the complete stacktrace (the stasktrace is essential for debugging purpose).
The question is : how to print the complete stacktrace
as if there were no try / catch block ?