summaryrefslogtreecommitdiff
path: root/doc/ci
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axilleas@axilleas.me>2016-03-13 09:35:40 +0200
committerAchilleas Pipinellis <axilleas@axilleas.me>2016-03-13 09:35:40 +0200
commitde7c3316b08e7763ac860503578e7fa4c78d2b9d (patch)
treeb089907fe67bf25b7c3937eaae9cb1f66d5bbd93 /doc/ci
parent372abbe7f95d89290d46ef356fc13cc0a886c317 (diff)
downloadgitlab-ce-de7c3316b08e7763ac860503578e7fa4c78d2b9d.tar.gz
Add hidden jobs
Diffstat (limited to 'doc/ci')
-rw-r--r--doc/ci/yaml/README.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/ci/yaml/README.md b/doc/ci/yaml/README.md
index 244cec71c8c..5f3a53dcf8e 100644
--- a/doc/ci/yaml/README.md
+++ b/doc/ci/yaml/README.md
@@ -631,6 +631,24 @@ rspec:
The cache is provided on best effort basis, so don't expect that cache will be
always present. For implementation details please check GitLab Runner.
+## Hidden jobs
+
+>**Note:**
+Introduced in GitLab 8.6 and GitLab Runner v1.1.1.
+
+Jobs that start with a dot (`.`) will be not processed by GitLab CI. You can
+use this feature to ignore jobs, or use the
+[special YAML features](#special-yaml-features) and transform the hidden jobs
+into templates.
+
+In the following example, `.job_name` will be ignored:
+
+```yaml
+.job_name:
+ script:
+ - rake spec
+```
+
## Special YAML features
It's possible to use special YAML features like anchors (`&`), aliases (`*`)