Unfortunately the build takes a long time to finish so the state changes are rare and people receive lots of emails so a broken build is often not noticed for a long time (my long time means more than a few minutes).
To cure this we added voice to our radiator: if the state of the build changes it tells it verbally. As we were not able to change the build system or the radiator we did it by an external ruby script.
Main ingredients of the script:
- The ruby http-uri open("url").read returns the radiator web page as html string
- The ruby string.scan(/regex/) can be used to look for the build status from the page
- http://www.rubular.com/ helps to figure out the needed regexp<(li>
- "echo something | espeak" in Ubuntu Linux and "say something" in mac os x says something :)
Ei kommentteja:
Lähetä kommentti