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

preparing.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: 6ed40c77934ef89faae5625fe561ecccb7623d86 (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
25
26
27
28
# frozen_string_literal: true

module Gitlab
  module Ci
    module Status
      module Build
        class Preparing < Status::Extended
          ##
          # TODO: image is shared with 'pending'
          # until we get a dedicated one
          #
          def illustration
            {
              image: 'illustrations/empty-state/empty-job-not-triggered-md.svg',
              size: '',
              title: _('This job is preparing to start'),
              content: _('This job is performing tasks that must complete before it can start')
            }
          end

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