Commit 47a89684 authored by Marcel Amirault's avatar Marcel Amirault

Merge branch 'ci-update-rules-docs-for-variables' into 'master'

Clarify when rules are being evaluated

See merge request gitlab-org/gitlab!72300
parents f4eab32a 9e89a527
......@@ -1111,8 +1111,11 @@ to the contents of the `script`:
Use `rules` to include or exclude jobs in pipelines.
Rules are evaluated *in order* until the first match. When a match is found, the job
is either included or excluded from the pipeline, depending on the configuration.
Rules are evaluated when the pipeline is created, and evaluated *in order*
until the first match. When a match is found, the job is either included or excluded from the pipeline,
depending on the configuration.
You cannot use dotenv variables created in job scripts in rules, because rules are evaluated before any jobs run.
`rules` replaces [`only/except`](#only--except) and they can't be used together
in the same job. If you configure one job to use both keywords, the GitLab returns
......
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