Commit 9e89a527 authored by Marius Bobin's avatar Marius Bobin Committed by Marcel Amirault

Clarify when rules are being evaluated

parent f4eab32a
...@@ -1111,8 +1111,11 @@ to the contents of the `script`: ...@@ -1111,8 +1111,11 @@ to the contents of the `script`:
Use `rules` to include or exclude jobs in pipelines. 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 Rules are evaluated when the pipeline is created, and evaluated *in order*
is either included or excluded from the pipeline, depending on the configuration. 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 `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 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