BusyB: The OnError element |
|
The onError element allows you to specify what BusyB should do when a single step or a whole build fails The onError element is simply a container for one or more action elements. For example, BusyB will normally stop building when an error occurs. Putting an ignore element under the onError element will tell BusyB to keep in going in spite of errors. <onError> <ignore/> <onError> Or we might want BusyB to abort the build on an error but to send mail first: <onError> <sendMail> <to>fred@acme.com</to> <from>george@acme.com</from> <subject>The build failed!!!</subject> <sendMail> <onError> Or perhaps send mail and keep on building: <onError> <sendMail> <to>fred@acme.com</to> <from>george@acme.com</from> <subject>The build failed!!!</subject> <sendMail> <ignore/> <onError> The onError element can contain any number of the following elements: |