summaryrefslogtreecommitdiff
path: root/app/models/commit_status.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 /app/models/commit_status.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 'app/models/commit_status.rb')
-rw-r--r--app/models/commit_status.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/models/commit_status.rb b/app/models/commit_status.rb
index 1e8f28b6466..f3888528940 100644
--- a/app/models/commit_status.rb
+++ b/app/models/commit_status.rb
@@ -40,9 +40,10 @@ class CommitStatus < ActiveRecord::Base
enum failure_reason: {
unknown_failure: nil,
- job_failure: 1,
+ script_failure: 1,
api_failure: 2,
- stuck_or_timeout_failure: 3
+ stuck_or_timeout_failure: 3,
+ runner_system_failure: 4
}
state_machine :status do