Commit 461f186a authored by Steve Azzopardi's avatar Steve Azzopardi Committed by Marcel Amirault

Document `EXECUTOR_JOB_SECTION_ATTEMPTS` variable

Document the new variable `EXECUTOR_JOB_SECTION_ATTEMPTS` introduced in
https://gitlab.com/gitlab-org/gitlab-runner/-/merge_requests/1995 for
the Docker executor for a single error but we might want to add more
errors/executors for this kind of logic.

More detail about the variable can be found in
https://gitlab.com/gitlab-org/gitlab-runner/-/merge_requests/1995#note_320619026

reference https://gitlab.com/gitlab-org/gitlab-runner/-/merge_requests/1995#note_320619026
reference https://gitlab.com/gitlab-org/gitlab-runner/-/issues/4450
parent caae4332
......@@ -3777,11 +3777,12 @@ script:
You can set the number for attempts the running job will try to execute each
of the following stages:
| Variable | Description |
|-------------------------------- |-------------|
| **GET_SOURCES_ATTEMPTS** | Number of attempts to fetch sources running a job |
| **ARTIFACT_DOWNLOAD_ATTEMPTS** | Number of attempts to download artifacts running a job |
| **RESTORE_CACHE_ATTEMPTS** | Number of attempts to restore the cache running a job |
| Variable | Description |
|-----------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **GET_SOURCES_ATTEMPTS** | Number of attempts to fetch sources running a job |
| **ARTIFACT_DOWNLOAD_ATTEMPTS** | Number of attempts to download artifacts running a job |
| **RESTORE_CACHE_ATTEMPTS** | Number of attempts to restore the cache running a job |
| **EXECUTOR_JOB_SECTION_ATTEMPTS** | [Since GitLab 12.10](https://gitlab.com/gitlab-org/gitlab-runner/-/issues/4450), the number of attempts to run a section in a job after a [`No Such Container`](https://gitlab.com/gitlab-org/gitlab-runner/-/issues/4450) error ([Docker executor](https://docs.gitlab.com/runner/executors/docker.html) only). |
The default is one single attempt.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment