JBE - Notify when build succeeds AFTER failure
I'm on RTC3, using JBE for continuous integration. The notification features are working great to tell the person(s) who delivered the change(s) that they "broke the build". We are also cc'ing the tech. lead on these failures.
I'm now looking for a way to send out another notification when the build succeeds after the failure to tell the person(s) who delivered the change(s) and the tech. lead that the build is back to normal.
To be clear, I don't want email on every success... only when the build succeeds after a failure.
So after success, it seems I need to look at the last build result, see if it was a failure, get information about the failed build result to do the notification, etc.
Do you know if this is possible to implement with the JBE ANT tasks or any other way? Any samples to share?
Thanks very much!,
Eric
I'm now looking for a way to send out another notification when the build succeeds after the failure to tell the person(s) who delivered the change(s) and the tech. lead that the build is back to normal.
To be clear, I don't want email on every success... only when the build succeeds after a failure.
So after success, it seems I need to look at the last build result, see if it was a failure, get information about the failed build result to do the notification, etc.
Do you know if this is possible to implement with the JBE ANT tasks or any other way? Any samples to share?
Thanks very much!,
Eric
Accepted answer
Eric, if you want to use it in the JBE, you could use the plain java client library see https://jazz.net/library/article/807 and http://ryehle.wordpress.com/2012/06/28/custom-build-result-pruner/ for inspirations. Otherwise I assume you would have to create a server extension that looks at build results. As far as I am aware you need 4.x to do that, because there was an issue with build events. In the server, you could use the Jazz e-mail server.
Comments
Thanks! I'll look in to these references.
Forgot to post Robin's other post: http://ryehle.wordpress.com/2011/12/21/adding-a-custom-ant-task-to-your-build-toolkit/