Add detailed docs in yaml README [ci skip]
This commit is contained in:
parent
0ddc5f667e
commit
f9f41716ef
1 changed files with 25 additions and 0 deletions
|
@ -1036,6 +1036,31 @@ variables:
|
||||||
GIT_STRATEGY: none
|
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
|
## Shallow cloning
|
||||||
|
|
||||||
> Introduced in GitLab 8.9 as an experimental feature. May change in future
|
> Introduced in GitLab 8.9 as an experimental feature. May change in future
|
||||||
|
|
Loading…
Reference in a new issue