diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2017-06-12 10:16:39 +0300 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2017-06-15 19:10:36 +0300 |
commit | fe71514b2786a5227cda968a032ba729b85534b5 (patch) | |
tree | a1961ac99c553f6e95f780a2d914a43859bfb339 /doc | |
parent | fc9a9e0871194879752c6ed18a22c84c122e7ef9 (diff) |
Merge branch 'patch-8' into 'master'
doc: add example of scheduler when
See merge request !12067
Diffstat (limited to 'doc')
-rw-r--r-- | doc/user/project/pipelines/schedules.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/user/project/pipelines/schedules.md b/doc/user/project/pipelines/schedules.md index d19d184f9b0..17cc21238ff 100644 --- a/doc/user/project/pipelines/schedules.md +++ b/doc/user/project/pipelines/schedules.md @@ -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 |