Module: Gitlab::Ci::Pipeline::Chain::Helpers
- Included in:
- AssignPartition, Build::Associations, Config::Content, Config::Process, Create, EvaluateWorkflowRules, Limit::ActiveJobs, Limit::Deployments, Limit::RateLimit, Populate, PopulateMetadata, Seed, SeedBlock, Validate::Abilities, Validate::AfterConfig, Validate::External, Validate::Repository, Validate::SecurityOrchestrationPolicy
- Defined in:
- lib/gitlab/ci/pipeline/chain/helpers.rb
Instance Method Summary collapse
Instance Method Details
#error(message, config_error: false, drop_reason: nil) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/gitlab/ci/pipeline/chain/helpers.rb', line 8 def error(, config_error: false, drop_reason: nil) = ActionController::Base.helpers.sanitize(, tags: []) if config_error drop_reason = :config_error pipeline.yaml_errors = end pipeline.() drop_pipeline!(drop_reason) # TODO: consider not to rely on AR errors directly as they can be # polluted with other unrelated errors (e.g. state machine) # https://gitlab.com/gitlab-org/gitlab/-/issues/220823 pipeline.errors.add(:base, ) pipeline.errors. end |
#warning(message) ⇒ Object
28 29 30 31 |
# File 'lib/gitlab/ci/pipeline/chain/helpers.rb', line 28 def warning() = ActionController::Base.helpers.sanitize(, tags: []) pipeline.() end |