summaryrefslogtreecommitdiff
path: root/lib/api/runner.rb
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-10-26 08:01:28 +0000
committerKamil TrzciƄski <ayufan@ayufan.eu>2018-10-26 08:01:28 +0000
commit0c9ad4826a79fa6d1cbbf8c4b1e12af9e4443515 (patch)
tree5f394df7397dbebc146514340955165fc8450a75 /lib/api/runner.rb
parent2bbfca8240c605e3b1c4aed18cadda4f6403e138 (diff)
downloadgitlab-ce-0c9ad4826a79fa6d1cbbf8c4b1e12af9e4443515.tar.gz
Support backward compatibility when introduce new failure reason
Diffstat (limited to 'lib/api/runner.rb')
-rw-r--r--lib/api/runner.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/api/runner.rb b/lib/api/runner.rb
index d8768a54986..2f15f3a7d76 100644
--- a/lib/api/runner.rb
+++ b/lib/api/runner.rb
@@ -142,8 +142,7 @@ module API
requires :id, type: Integer, desc: %q(Job's ID)
optional :trace, type: String, desc: %q(Job's full trace)
optional :state, type: String, desc: %q(Job's status: success, failed)
- optional :failure_reason, type: String, values: CommitStatus.failure_reasons.keys,
- desc: %q(Job's failure_reason)
+ optional :failure_reason, type: String, desc: %q(Job's failure_reason)
end
put '/:id' do
job = authenticate_job!