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

Inherits:
Gitlab::Ci::Pipeline::Chain::Base show all
Includes:
Allowable, Helpers
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 included from Helpers

#error, #warning

Methods included from Allowable

#can?

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)

17
18
19
# File 'lib/gitlab/ci/pipeline/chain/build/associations.rb', line 17

def break?
  @pipeline.errors.any?
end

#perform!Object


12
13
14
15
# File 'lib/gitlab/ci/pipeline/chain/build/associations.rb', line 12

def perform!
  assign_pipeline_variables
  assign_source_pipeline
end