Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/concerns/ci/has_status.rb')
-rw-r--r--app/models/concerns/ci/has_status.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/models/concerns/ci/has_status.rb b/app/models/concerns/ci/has_status.rb
index 0412f7a072b..c990da5873a 100644
--- a/app/models/concerns/ci/has_status.rb
+++ b/app/models/concerns/ci/has_status.rb
@@ -16,6 +16,19 @@ module Ci
STATUSES_ENUM = { created: 0, pending: 1, running: 2, success: 3,
failed: 4, canceled: 5, skipped: 6, manual: 7,
scheduled: 8, preparing: 9, waiting_for_resource: 10 }.freeze
+ STATUSES_DESCRIPTION = {
+ created: 'Pipeline has been created',
+ waiting_for_resource: 'A resource (for example, a runner) that the pipeline requires to run is unavailable',
+ preparing: 'Pipeline is preparing to run',
+ pending: 'Pipeline has not started running yet',
+ running: 'Pipeline is running',
+ failed: 'At least one stage of the pipeline failed',
+ success: 'Pipeline completed successfully',
+ canceled: 'Pipeline was canceled before completion',
+ skipped: 'Pipeline was skipped',
+ manual: 'Pipeline needs to be manually started',
+ scheduled: 'Pipeline is scheduled to run'
+ }.freeze
UnknownStatusError = Class.new(StandardError)