Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9e89a527
Commit
9e89a527
authored
Oct 20, 2021
by
Marius Bobin
Committed by
Marcel Amirault
Oct 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify when rules are being evaluated
parent
f4eab32a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
doc/ci/yaml/index.md
doc/ci/yaml/index.md
+5
-2
No files found.
doc/ci/yaml/index.md
View file @
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment