Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-10-26 11:01:28 +0300
committerKamil TrzciƄski <ayufan@ayufan.eu>2018-10-26 11:01:28 +0300
commit0c9ad4826a79fa6d1cbbf8c4b1e12af9e4443515 (patch)
tree5f394df7397dbebc146514340955165fc8450a75 /lib
parent2bbfca8240c605e3b1c4aed18cadda4f6403e138 (diff)
Support backward compatibility when introduce new failure reason
Diffstat (limited to 'lib')
-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!