diff options
author | Tiger <twatson@gitlab.com> | 2019-03-26 17:09:07 +1100 |
---|---|---|
committer | Tiger <twatson@gitlab.com> | 2019-04-02 11:04:41 +1100 |
commit | de03a8bcb45f11a50bee071e977274c113e7b39a (patch) | |
tree | 5777fee3e2c70cea8b3425232b21c945ee5da2b7 /spec/factories | |
parent | 093629fedc43e8b481c6626765e3fcf0603add17 (diff) | |
download | gitlab-ce-de03a8bcb45f11a50bee071e977274c113e7b39a.tar.gz |
Detailed status for builds that fail prerequisites
Create FailedUnmetPrerequisites status to allow custom
messaging for builds that were unable to be queued due
to failing to meet prerequisites (eg. failing to create
Kubernetes namespace for deployment).
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/ci/builds.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/factories/ci/builds.rb b/spec/factories/ci/builds.rb index 067391c1179..f8c494c159e 100644 --- a/spec/factories/ci/builds.rb +++ b/spec/factories/ci/builds.rb @@ -336,6 +336,11 @@ FactoryBot.define do failure_reason 2 end + trait :prerequisite_failure do + failed + failure_reason 10 + end + trait :with_runner_session do after(:build) do |build| build.build_runner_session(url: 'https://localhost') |