gitlab-org--gitlab-foss/lib/gitlab/ci/status/build/failed_unmet_prerequisites.rb
jerasmus 11f2ddf021 Display error for unmet prerequisites
Added the ability to display an error for unmet prerequisites
2019-04-02 11:07:06 +11:00

24 lines
584 B
Ruby

# 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-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