summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/status/build/preparing.rb
blob: 1fddcb05f791eccc706bcadd1db5570695028033 (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/job_not_triggered.svg',
              size: 'svg-306',
              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