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
e62ef29d
Commit
e62ef29d
authored
Oct 15, 2020
by
Marcel Amirault
Committed by
Evan Read
Oct 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify after script details
parent
2501495a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+6
-3
No files found.
doc/ci/yaml/README.md
View file @
e62ef29d
...
...
@@ -649,15 +649,18 @@ job:
> Introduced in GitLab 8.7 and requires GitLab Runner v1.2.
`before_script`
is used to define
a command
that should be run before each
`before_script`
is used to define
commands
that should be run before each
job, including deploy jobs, but after the restoration of any
[
artifacts
](
#artifacts
)
.
This must be an array.
Scripts specified in
`before_script`
are concatenated with any scripts specified
in the main
[
`script`
](
#script
)
, and executed together in a single shell.
`after_script`
is used to define the command that runs after each
job, including failed ones. This must be an array.
`after_script`
is used to define commands that run after each
job, including failed jobs. This must be an array. If a job times out or is cancelled,
the
`after_script`
commands are not executed. Support for executing
`after_script`
commands for timed-out or cancelled jobs
[
is planned
](
https://gitlab.com/gitlab-org/gitlab/-/issues/15603
)
.
Scripts specified in
`after_script`
are executed in a new shell, separate from any
`before_script`
or
`script`
scripts. As a result, they:
...
...
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