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:
Dmitriy Zaporozhets
2014-06-10 16:25:40 +00:00
@@ -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'