diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-09-05 15:10:34 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-09-05 15:10:34 +0900 |
commit | 38d9b4d77d85e26f827ff9640243494adc8597ed (patch) | |
tree | 7052b5d25da7a793fe899967410f471d5e64f1ad /lib/api/runner.rb | |
parent | 5d50cbfaab1d67ffaea6064aeac848f1fc1127a6 (diff) | |
download | gitlab-ce-38d9b4d77d85e26f827ff9640243494adc8597ed.tar.gz |
Use script_failure. Add runner_system_failure. Improve spec.feature/sm/37239-implement-failure_reason-on-ci_builds
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 76354fd8c98..a3987c560dd 100644 --- a/lib/api/runner.rb +++ b/lib/api/runner.rb @@ -129,8 +129,7 @@ module API when 'success' job.success when 'failed' - failure_reason = params[:failure_reason] ? params[:failure_reason].to_sym : :unknown_failure - job.drop(failure_reason) + job.drop(params[:failure_reason] || :unknown_failure) end end |