summaryrefslogtreecommitdiff
path: root/app/presenters
diff options
context:
space:
mode:
authorTiger <twatson@gitlab.com>2019-03-04 10:56:20 +1100
committerTiger <twatson@gitlab.com>2019-03-20 12:04:40 +1100
commit00f0d356b71fa87f8190810b01add0cc4586e90a (patch)
treee6b59c822bba6db3ea1e80079e644d010b84f806 /app/presenters
parent42ca9c6f0de34dfa7ae09cc0e9672ea5857afd38 (diff)
downloadgitlab-ce-00f0d356b71fa87f8190810b01add0cc4586e90a.tar.gz
Create framework for build prerequisites
Introduces the concept of Prerequisites for a CI build. If a build has unmet prerequisites it will go through the :preparing state before being made available to a runner. There are no actual prerequisites yet, so current behaviour is unchanged.
Diffstat (limited to 'app/presenters')
-rw-r--r--app/presenters/commit_status_presenter.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/presenters/commit_status_presenter.rb b/app/presenters/commit_status_presenter.rb
index 0cd77da6303..28a25c8b7a3 100644
--- a/app/presenters/commit_status_presenter.rb
+++ b/app/presenters/commit_status_presenter.rb
@@ -11,7 +11,8 @@ class CommitStatusPresenter < Gitlab::View::Presenter::Delegated
runner_unsupported: 'Your runner is outdated, please upgrade your runner',
stale_schedule: 'Delayed job could not be executed by some reason, please try again',
job_execution_timeout: 'The script exceeded the maximum execution time set for the job',
- archived_failure: 'The job is archived and cannot be run'
+ archived_failure: 'The job is archived and cannot be run',
+ unmet_prerequisites: 'The job failed to complete prerequisite tasks'
}.freeze
private_constant :CALLOUT_FAILURE_MESSAGES