Choose when to run jobs | GitLab - 0 views
-
Rules are evaluated in order until the first match.
- ...32 more annotations...
-
use all rules keywords, like if, changes, and exists, in the same rule. The rule evaluates to true only when all included keywords evaluate to true.
-
avoid duplicate pipelines by changing the job rules to avoid either push (branch) pipelines or merge request pipelines.
-
For behavior similar to the only/except keywords, you can check the value of the $CI_PIPELINE_SOURCE variable
-
If you use multiple keywords with only or except, the keywords are evaluated as a single conjoined expression.
-
Use when: delayed to execute scripts after a waiting period, or if you want to avoid jobs immediately entering the pending state.
-
run a trigger job multiple times in parallel in a single pipeline, but with different variable values for each instance of the job.
-
The @ symbol denotes the beginning of a ref’s repository path. To match a ref name that contains the @ character in a regular expression, you must use the hex character code match \x40.