gitlab-org--gitlab-foss/lib/gitlab/ci/status/preparing.rb
Tiger 42ca9c6f0d Add :preparing status to HasStatus
Introduces a new status for builds between :created and :pending
that will be used when builds require one or more prerequisite
actions to be completed before being picked up by a runner
(such as creating Kubernetes resources before deploying).

The existing :created > :pending transition is unchanged, so
only builds that require preparation will use the :preparing
status.
2019-03-20 11:48:31 +11:00

33 lines
608 B
Ruby

# frozen_string_literal: true
module Gitlab
module Ci
module Status
class Preparing < Status::Core
def text
s_('CiStatusText|preparing')
end
def label
s_('CiStatusLabel|preparing')
end
##
# TODO: shared with 'created'
# until we get one for 'preparing'
#
def icon
'status_created'
end
##
# TODO: shared with 'created'
# until we get one for 'preparing'
#
def favicon
'favicon_status_created'
end
end
end
end
end