Class: Gitlab::Ci::Status::Build::FailedUnmetPrerequisites

Inherits:
Extended
  • Object
show all
Defined in:
lib/gitlab/ci/status/build/failed_unmet_prerequisites.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Extended

#initialize

Constructor Details

This class inherits a constructor from Gitlab::Ci::Status::Extended

Class Method Details

.matches?(build, _) ⇒ Boolean

Returns:

  • (Boolean)

17
18
19
# File 'lib/gitlab/ci/status/build/failed_unmet_prerequisites.rb', line 17

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

Instance Method Details

#illustrationObject


8
9
10
11
12
13
14
15
# File 'lib/gitlab/ci/status/build/failed_unmet_prerequisites.rb', line 8

def illustration
  {
    image: 'illustrations/pipelines_failed.svg',
    size: 'svg-430',
    title: _('Failed to create resources'),
    content: _('Retry this job in order to create the necessary resources.')
  }
end