summaryrefslogtreecommitdiff
path: root/app/models/commit_status.rb
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-08-31 22:03:41 +0900
committerShinya Maeda <shinya@gitlab.com>2017-09-05 14:30:28 +0900
commit1d7c0390722c96aa66af5b26f5a826b97293dcd6 (patch)
treeff1795a881ac9a4fa455552ef5dd076f2978d8e2 /app/models/commit_status.rb
parentb1af1f268b97c8518bf2806bca48f49174a8aead (diff)
downloadgitlab-ce-1d7c0390722c96aa66af5b26f5a826b97293dcd6.tar.gz
Fix enum lists
Diffstat (limited to 'app/models/commit_status.rb')
-rw-r--r--app/models/commit_status.rb14
1 files changed, 4 insertions, 10 deletions
diff --git a/app/models/commit_status.rb b/app/models/commit_status.rb
index 424f8e49d4d..1c4088d5af9 100644
--- a/app/models/commit_status.rb
+++ b/app/models/commit_status.rb
@@ -39,16 +39,10 @@ class CommitStatus < ActiveRecord::Base
scope :after_stage, -> (index) { where('stage_idx > ?', index) }
enum failure_reason: {
- no_error: nil,
- failed_by_script: 1, # TODO: Not used. Should we expand pipeline as well?
- failed_by_missing_dependency: 2, # This will be done in the next MR.
- failed_by_system: 3, # TODO: Not used. What's this state?
- failed_by_job_state: 4,
- failed_by_out_of_quota: 5, # TODO: Only EE. How can we detect?
- failed_by_stuck_and_timeout: 6,
- failed_by_no_runner: 7, # TODO: Not used. How can we detect?
- failed_by_api: 8,
- failed_by_page: 9
+ unknown_failure: nil,
+ job_failure: 1,
+ api_failure: 2,
+ stuck_or_timeout_failure: 3,
}
state_machine :status do