mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-19 01:26:08 +10:00
Merge branch 'add_aborted_status' into 'master'
Jenkins Service - Add aborted status Currently, Jenkins service will show "pending" build status even if the job has been aborted. This simple change allows the CI status to recognize an aborted status and mark it as a failure.
This commit is contained in:
@@ -76,7 +76,7 @@ class JenkinsService < CiService
|
||||
if response.code == 200
|
||||
if response.include?('alt="Success"')
|
||||
'success'
|
||||
elsif response.include?('alt="Failed"')
|
||||
elsif response.include?('alt="Failed"') || response.include?('alt="Aborted"')
|
||||
'failed'
|
||||
elsif response.include?('alt="In progress"')
|
||||
'running'
|
||||
|
||||
Reference in New Issue
Block a user