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

failed_unmet_prerequisites.rb « build « status « ci « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e82c8050be7e369fd20f9399201510babb9b3422 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# frozen_string_literal: true

module Gitlab
  module Ci
    module Status
      module Build
        class FailedUnmetPrerequisites < Status::Extended
          def illustration
            {
              image: 'illustrations/pipelines_failed.svg',
              size: 'svg-content svg-430',
              title: _('Failed to create resources'),
              content: _('Retry this job in order to create the necessary resources.')
            }
          end

          def self.matches?(build, _)
            build.unmet_prerequisites?
          end
        end
      end
    end
  end
end