Automation is critical for gaining transparency in your organization's development process. If everyone knows what's going on (and how often), trust is built and communication improved.
9. Ensure quality
if test_deployment and !github_release_id
msg.http("http://10.0.0.25:8081/job/00_hubot_deployment/
buildWithParameters?token=<jenkinstoken>&GIT_COMMIT=#{sha}")
.get()
13. Putting the pieces together
msg.http("https://api.github.com/repos/stylight/stylight-web/releases")
.headers( 'Authorization': "token <GIT_API_TOKEN>",
'User-Agent': "Stybot" )
.get() (err, res, body) ->
for release in JSON.parse body
if release['target_commitish'][0..6] == sha[0..6]
github_release_id = release['id']
if live_deployment and !github_release_id
msg.reply 'WARN: ' + sha[0..6] + ' has no passing tests!'