diff options
author | James Lopez <james@jameslopez.es> | 2016-12-16 16:34:58 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-12-16 16:34:58 +0100 |
commit | f9f41716efb10e4e2694b34b8adf7ae09025041e (patch) | |
tree | 07158cc6bc7a9a2b96cc193521a21d12f067d25f | |
parent | 0ddc5f667e60db6f7f6021dec55a1c9feab852ab (diff) | |
download | gitlab-ce-feature/runner-script-attempts-docs.tar.gz |
Add detailed docs in yaml README [ci skip]feature/runner-script-attempts-docs
-rw-r--r-- | doc/ci/yaml/README.md | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/ci/yaml/README.md b/doc/ci/yaml/README.md index 5e8d888e555..430952705e0 100644 --- a/doc/ci/yaml/README.md +++ b/doc/ci/yaml/README.md @@ -1036,6 +1036,31 @@ variables: GIT_STRATEGY: none ``` +## Build stages attempts + +> Introduced in GitLab, it requires GitLab Runner v1.9+. + +You can set the number for attempts the running build will try to execute each +of the following stages: + +| Variable | Description | +|-------------------------|-------------| +| **GET_SOURCES_ATTEMPTS** | Number of attempts to fetch sources running a build | +| **ARTIFACT_DOWNLOAD_ATTEMPTS** | Number of attempts to download artifacts running a build | +| **RESTORE_CACHE_ATTEMPTS** | Number of attempts to restore the cache running a build | + +The default is one single attempt. + +Example: + +``` +variables: + GET_SOURCES_ATTEMPTS: "3" +``` + +You can set the them in the global [`variables`](#variables) section or the [`variables`](#job-variables) +section for individual jobs. + ## Shallow cloning > Introduced in GitLab 8.9 as an experimental feature. May change in future |