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 ?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/97a38353-da58-4fdd-bf31-8838a1ef7ff3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to