Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2017-06-12 10:16:39 +0300
committerGrzegorz Bizon <grzegorz@gitlab.com>2017-06-12 10:16:39 +0300
commitc165f39b5ceb092a5e7f331c8d6d5362f7ca2ea0 (patch)
treeb75ed470e3c6d0a01e7d22944f6d1d5bedc42d6b
parent1e3bb74d4d4fe036ff54f3039b454b0f3a0de8ec (diff)
parentfe1f69442ce12a36987067f67ff0b9f33260af21 (diff)
Merge branch 'patch-8' into 'master'
doc: add example of scheduler when See merge request !12067
-rw-r--r--doc/user/project/pipelines/schedules.md20
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