Commit e749d228 authored by Marcel Amirault's avatar Marcel Amirault

Merge branch 'cicd-yaml-doc-rules-if-improvement' into 'master'

doc: cicd: yaml: clarify rules:if when behaviour

See merge request gitlab-org/gitlab!33040
parents f5fdafc8 bcc97a32
---
doc: "cicd: yaml: clarify rules:if when behaviour"
merge_request: 33040
author: Melvin Vermeeren
type: changed
...@@ -1014,10 +1014,14 @@ job: ...@@ -1014,10 +1014,14 @@ job:
- if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME' # If neither of the first two match but the simple presence does, we set to "on_success" by default - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME' # If neither of the first two match but the simple presence does, we set to "on_success" by default
``` ```
If none of the provided rules match, the job will be set to `when:never`, and Some details regarding the logic that determines the `when` for the job:
not included in the pipeline. If `rules:when` is not included in the configuration
at all, the behavior defaults to `job:when`, which continues to default to - If none of the provided rules match, the job is set to `when: never`, and is
`on_success`. not included in the pipeline.
- A rule without any conditional clause, such as a `when` or `allow_failure`
rule without `if` or `changes`, always matches, and is always used if reached.
- If a rule matches and has no `when` defined, the rule will use the `when`
defined for the job, which defaults to `on_success` if not defined.
#### `rules:changes` #### `rules:changes`
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment