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
path: root/doc/ci/yaml
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-11-21 22:25:07 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2015-11-21 22:25:07 +0300
commitf2318dfc9e80555bae99f543d4e07ec089ab3935 (patch)
treed11a6c2dc4f89298df53f102545694b899f37201 /doc/ci/yaml
parent78be7055e5c5ef5137257c795e494b78dd1d9245 (diff)
Fix CI yaml syntax documentation [ci skip]
Diffstat (limited to 'doc/ci/yaml')
-rw-r--r--doc/ci/yaml/README.md90
1 files changed, 41 insertions, 49 deletions
diff --git a/doc/ci/yaml/README.md b/doc/ci/yaml/README.md
index 3e6071a2ee7..3dbf1afc7a9 100644
--- a/doc/ci/yaml/README.md
+++ b/doc/ci/yaml/README.md
@@ -278,26 +278,23 @@ The above script will:
`artifacts` is used to specify list of files and directories which should be attached to build after success.
1. Send all files in `binaries` and `.config`:
-```
-artifacts:
- paths:
- - binaries/
- - .config
-```
+
+ artifacts:
+ paths:
+ - binaries/
+ - .config
2. Send all git untracked files:
-```
-artifacts:
- untracked: true
-```
+
+ artifacts:
+ untracked: true
3. Send all git untracked files and files in `binaries`:
-```
-artifacts:
- untracked: true
- paths:
- - binaries/
-```
+
+ artifacts:
+ untracked: true
+ paths:
+ - binaries/
The artifacts will be send after the build success to GitLab and will be accessible in GitLab interface to download.
@@ -307,46 +304,41 @@ This feature requires GitLab Runner v0.7.0 or higher.
`cache` is used to specify list of files and directories which should be cached between builds.
1. Cache all files in `binaries` and `.config`:
-```
-rspec:
- script: test
- cache:
- paths:
- - binaries/
- - .config
-```
+
+ rspec:
+ script: test
+ cache:
+ paths:
+ - binaries/
+ - .config
2. Cache all git untracked files:
-```
-rspec:
- script: test
- cache:
- untracked: true
-```
+ rspec:
+ script: test
+ cache:
+ untracked: true
+
3. Cache all git untracked files and files in `binaries`:
-```
-rspec:
- script: test
- cache:
- untracked: true
- paths:
- - binaries/
-```
-4. Locally defined cache overwrites globally defined options. This will cache only `binaries/`:
+ rspec:
+ script: test
+ cache:
+ untracked: true
+ paths:
+ - binaries/
-```
-cache:
- paths:
- - my/files
+4. Locally defined cache overwrites globally defined options. This will cache only `binaries/`:
-rspec:
- script: test
- cache:
- paths:
- - binaries/
-```
+ cache:
+ paths:
+ - my/files
+
+ rspec:
+ script: test
+ cache:
+ paths:
+ - binaries/
The cache is provided on best effort basis, so don't expect that cache will be present.
For implementation details please check GitLab Runner.