diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-10-26 08:01:28 +0000 |
---|---|---|
committer | Kamil TrzciĆski <ayufan@ayufan.eu> | 2018-10-26 08:01:28 +0000 |
commit | 0c9ad4826a79fa6d1cbbf8c4b1e12af9e4443515 (patch) | |
tree | 5f394df7397dbebc146514340955165fc8450a75 /lib/api/runner.rb | |
parent | 2bbfca8240c605e3b1c4aed18cadda4f6403e138 (diff) | |
download | gitlab-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.rb | 3 |
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! |