Merge branch 'fix_jenkins_status' into 'master'

Add yellow/unstable build as a failure

Jenkins has more build statuses than any 'CI' tool I've ever seen. Apparently a build can be 'successful' but if tests fail it's called 'unstable'. However, 'unstable' is not considered a failing build. Bleh...

Anyway, GitLab needs to consider unstable or yellow builds a failure for CI purposes.

See merge request !11
This commit is contained in:
Dmitriy Zaporozhets
2015-08-18 14:02:31 +00:00
@@ -73,7 +73,7 @@ class JenkinsService < CiService
src = Nokogiri.parse(response).css('img.build-caption-status-icon,.build-caption>img').first.attributes['src'].value
if src =~ /blue\.png$/
'success'
elsif src =~ /(red\.png|aborted\.png)$/
elsif src =~ /(red|aborted|yellow)\.png$/
'failed'
elsif src =~ /anime\.gif$/
'running'