summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-08-31 03:20:54 +0900
committerShinya Maeda <shinya@gitlab.com>2017-09-05 14:30:28 +0900
commitdcf09d11447c264f4b4028ea80eea2be913c2f5b (patch)
treed992feb77bb5246ba05ebf18610b05bce8859c63 /lib
parent597bc29260c4be3a1527a1c5307bec40004bac4d (diff)
downloadgitlab-ce-dcf09d11447c264f4b4028ea80eea2be913c2f5b.tar.gz
Implement `failure_reason` on `ci_builds`
Diffstat (limited to 'lib')
-rw-r--r--lib/api/commit_statuses.rb2
-rw-r--r--lib/api/runner.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/commit_statuses.rb b/lib/api/commit_statuses.rb
index 6314ea63197..c129cc9171d 100644
--- a/lib/api/commit_statuses.rb
+++ b/lib/api/commit_statuses.rb
@@ -103,7 +103,7 @@ module API
when 'success'
status.success!
when 'failed'
- status.drop!
+ status.drop!(:api)
when 'canceled'
status.cancel!
else
diff --git a/lib/api/runner.rb b/lib/api/runner.rb
index 11999354594..604bfd53296 100644
--- a/lib/api/runner.rb
+++ b/lib/api/runner.rb
@@ -127,7 +127,7 @@ module API
when 'success'
job.success
when 'failed'
- job.drop
+ job.drop(:failed_job_state)
end
end