--
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/13fa2d82-4e53-40df-a9a6-d6d2f020b2b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5393aca6-eee1-4832-9dce-3052781a6010%40googlegroups.com.
Maybe you could share a gist of your script, showing the issue you're having and what you want/expect? Will probably be more efficient than just speaking about that code?
--
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/deca56cf-72e0-4735-a570-e59aad7b79e7%40googlegroups.com.
try {
// do something} catch(all) {
def message="...."
notifySlack(message)
throw new Exception(message)
}
// finally
notifySlack("Done!")currentBuild.result = "SUCCESS"
stage 'Remove Build Image' try { removeBuildImage(WORKSPACE) } catch (all) { def message="Failed to remove build image!" notifySlack(message) // Does not make sense to continue throw new Exception(message) }
06:58:21 Deleted: sha256:aa4e7c1557f3bfab99c3e233d6be5647061d81fdc5b570921eec0d7cc033c2dd
06:58:21 Deleted: sha256:6a74d75c87b71c9d8e6e6988baf48cc2ed2b7fb6b4ea87cb5d602c4b224a0483
06:58:21 remove_image.sh :: Success: Docker build image removed
4 // Remove the Docker image for the build. 5 def removeBuildImage(WORKSPACE) { 6 sh "WORKSPACE=$WORKSPACE $WORKSPACE/cicd/scripts/remove_image.sh build" 7 } You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/Bu8GeYSqm1Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/71c4e1ff-850f-40a5-a7e8-09089e8d57d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.