mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-03 16:04:30 +00:00
23 lines
535 B
Ruby
23 lines
535 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Gitlab
|
|
module Ci
|
|
module Pipeline
|
|
module Chain
|
|
# During linting, we don't want to persist the pipeline so we skip
|
|
# all the following steps that operate on persisted objects.
|
|
# This class allows us to exit the pipeline creation chain when we're done linting.
|
|
class StopLinting < Chain::Base
|
|
def perform!
|
|
# no-op
|
|
end
|
|
|
|
def break?
|
|
@command.linting?
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|