Class: Gitlab::Ci::Pipeline::Chain::EvaluateWorkflowRules
- Inherits:
-
Base
- Object
- Base
- Gitlab::Ci::Pipeline::Chain::EvaluateWorkflowRules
show all
- Includes:
- Helpers, Utils::StrongMemoize
- Defined in:
- lib/gitlab/ci/pipeline/chain/evaluate_workflow_rules.rb
Instance Attribute Summary
Attributes inherited from Base
#command, #config, #pipeline
Instance Method Summary
collapse
Methods included from Helpers
#error, #warning
Methods inherited from Base
#initialize
Instance Method Details
#break? ⇒ Boolean
17
18
19
|
# File 'lib/gitlab/ci/pipeline/chain/evaluate_workflow_rules.rb', line 17
def break?
@pipeline.errors.any? || @pipeline.persisted?
end
|
11
12
13
14
15
|
# File 'lib/gitlab/ci/pipeline/chain/evaluate_workflow_rules.rb', line 11
def perform!
@command.workflow_rules_result = workflow_rules_result
error('Pipeline filtered out by workflow rules.') unless workflow_passed?
end
|