Commit c165f39b authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'patch-8' into 'master'

doc: add example of scheduler when

See merge request !12067
parents 1e3bb74d fe1f6944
......@@ -31,6 +31,26 @@ is installed on.
![Schedules list](img/pipeline_schedules_list.png)
## Using only and except
To configure that a job can be executed only when the pipeline has been
scheduled (or the opposite), you can use
[only and except](../../../ci/yaml/README.md#only-and-except) configuration keywords.
```
job:on-schedule:
only:
- schedules
script:
- make world
job:
except:
- schedules
script:
- make build
```
## Taking ownership
Pipelines are executed as a user, who owns a schedule. This influences what
......
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