Triggering an event on failure.#845

Subscribe to Triggering an event on failure. 3 post(s), 3 voice(s)

 
Avatar markm 7 post(s) #2258

Is there a way in cruise to trigger an even if a stage or job in the build process fails. We would like to automate a response so when a job cannot be completed we are able to run an action on an agent.

Specifically we would like to alert developers when the build process has been broken with an audible cue and Andon lights. This could be as simple as a RESTful call to our Andon server or it could be as complex as running a rake or nant task on one of our agents which contact the server.

Ideally we would like to pass along the stage or job that has failed and which developer check in the code that is failing or breaking tests to the server.

Is this currently possible? Any thoughts?

 
Avatar Qiao Liang Administrator 18 post(s) #2261

The Cruise team has been thinking about notifications for a future release.

 
Avatar Chris Stevenson Administrator 27 post(s) #2269

You are right that at the moment we can’t do this. We may be able to implement it with a variation on the <depends /> feature. Right now I would suggest adding it to the build itself, although this is not an ideal solution.