Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
546e63a3
Commit
546e63a3
authored
Dec 10, 2019
by
Jonston Chan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Incorporate suggestions from Marcel Amirault
parent
91741dd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+6
-11
No files found.
doc/ci/yaml/README.md
View file @
546e63a3
...
...
@@ -292,6 +292,12 @@ Scripts specified in `after_script` are executed in a new shell, separate from a
-
Command aliases and variables exported in
`script`
scripts.
-
Changes outside of the working tree (depending on the Runner executor), like
software installed by a
`before_script`
or
`script`
script.
-
Have a separate timeout.
-
The timeout is hard coded to 5 minutes, see
[
related issue
](
https://gitlab.com/gitlab-org/gitlab-runner/issues/2716
)
.
-
Do not affect the job's exit code nor the pipeline.
-
If the
`script`
section succeeds and the
`after_script`
times out or fails,
the job will exit with code
`0`
(
`Job Succeeded`
).
It's possible to overwrite a globally defined
`before_script`
or
`after_script`
if you set it per-job:
...
...
@@ -310,17 +316,6 @@ job:
-
execute this after my script
```
NOTE:
**Note:**
`after_script`
has a hard-coded timeout of 5 minutes.
See the
[
Allow configurable after_script timeouts proposal
](
https://gitlab.com/gitlab-org/gitlab-runner/issues/2716
)
for updates.
NOTE:
**Note:**
The
`after_script`
timeout does not affect the job's exit code.
If the
`script`
section succeeds and the
`after_script`
times out, the job will
still exit with exit code 0 (success). This does not trigger
`retry: when: always`
.
The pipeline also continues as though no failures have been encountered.
#### YAML anchors for `before_script` and `after_script`
> [Introduced](https://gitlab.com/gitlab-org/gitlab/issues/23005) in GitLab 12.5.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment