Class: Gitlab::Ci::Pipeline::Chain::Build::Associations

Inherits:
Gitlab::Ci::Pipeline::Chain::Base show all
Defined in:
lib/gitlab/ci/pipeline/chain/build/associations.rb

Instance Attribute Summary

Attributes inherited from Gitlab::Ci::Pipeline::Chain::Base

#command, #config, #pipeline

Instance Method Summary collapse

Methods inherited from Gitlab::Ci::Pipeline::Chain::Base

#initialize

Constructor Details

This class inherits a constructor from Gitlab::Ci::Pipeline::Chain::Base

Instance Method Details

#break?Boolean

Returns:

  • (Boolean)

20
21
22
# File 'lib/gitlab/ci/pipeline/chain/build/associations.rb', line 20

def break?
  false
end

#perform!Object


9
10
11
12
13
14
15
16
17
18
# File 'lib/gitlab/ci/pipeline/chain/build/associations.rb', line 9

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