summaryrefslogtreecommitdiff
path: root/lib/api/runner.rb
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-09-05 15:10:34 +0900
committerShinya Maeda <shinya@gitlab.com>2017-09-05 15:10:34 +0900
commit38d9b4d77d85e26f827ff9640243494adc8597ed (patch)
tree7052b5d25da7a793fe899967410f471d5e64f1ad /lib/api/runner.rb
parent5d50cbfaab1d67ffaea6064aeac848f1fc1127a6 (diff)
downloadgitlab-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.rb3
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