summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/pipeline/chain/build/associations.rb
blob: eb49c56bcd7ccde8c2535f7a037eaf18a0e67b2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# frozen_string_literal: true

module Gitlab
  module Ci
    module Pipeline
      module Chain
        class Build
          class Associations < Chain::Base
            def perform!
              return unless @command.bridge

              @pipeline.build_source_pipeline(
                source_pipeline: @command.bridge.pipeline,
                source_project: @command.bridge.project,
                source_bridge: @command.bridge,
                project: @command.project
              )
            end

            def break?
              false
            end
          end
        end
      end
    end
  end
end