mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-21 18:46:10 +10:00
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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user