Welcome to mirror list, hosted at ThFree Co, Russian Federation.

stop_dry_run.rb « chain « pipeline « ci « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0e9add4ee743105654f46a973d856a84b559542e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# frozen_string_literal: true

module Gitlab
  module Ci
    module Pipeline
      module Chain
        # During the dry run we don't want to persist the pipeline and skip
        # all the other steps that operate on a persisted context.
        # This causes the chain to break at this point.
        class StopDryRun < Chain::Base
          def perform!
            # no-op
          end

          def break?
            @command.dry_run?
          end
        end
      end
    end
  end
end