M1 Tip#9: Catch build failure
Sometime you want to execute some Jelly script or call some goal and you don't want the build to stop in case of a failure. For example you might want to call some specific goal even if another goal that you call fails.
This can be achieved using the Jelly
<j:catch> tag.
For example:
<j:catch exception="e"> <attainGoal name="someGoalThatCanFail"/> </j:catch> <echo>Exception was: ${e}</echo>
