Regarding 3: The script language is Groovy so the expansion of ${variablename} is only done when using a Groovy-String, which is defined by double quotation marks ”, not single ’.
So: change it to
echo ”Caught-1 : ${exc}”
/Joachim
--
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-use...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/c817ba2b-925f-4fdf-9822-e92089637f30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c817ba2b-925f-4fdf-9822-e92089637f30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/HE1PR07MB0795F65BA415ABAEA28AAA3590EC0%40HE1PR07MB0795.eurprd07.prod.outlook.com.To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.