debian-mirror-gitlab/lib/gitlab/ci/status/build/failed_unmet_prerequisites.rb
2019-07-07 11:18:12 +05:30

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