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
c8945ed0
Commit
c8945ed0
authored
Oct 17, 2019
by
Marius Bobin
Committed by
Evan Read
Oct 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docs for .pre and .post pipeline stages
parent
645fc7d9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+19
-0
No files found.
doc/ci/yaml/README.md
View file @
c8945ed0
...
...
@@ -318,6 +318,17 @@ There are also two edge cases worth mentioning:
`test`
and
`deploy`
are allowed to be used as job's stage by default.
1.
If a job doesn't specify a
`stage`
, the job is assigned the
`test`
stage.
#### `.pre` and `.post`
> [Introduced](https://gitlab.com/gitlab-org/gitlab/issues/31441) in GitLab 12.4.
The following stages are available to every pipeline:
-
`.pre`
, which is guaranteed to always be the first stage in a pipeline.
-
`.post`
, which is guaranteed to always be the last stage in a pipeline.
User-defined stages are executed after
`.pre`
and before
`.post`
.
### `stage`
`stage`
is defined per-job and relies on
[
`stages`
](
#stages
)
which is defined
...
...
@@ -330,6 +341,10 @@ stages:
-
test
-
deploy
job 0
:
stage
:
.pre
script
:
make something useful before build stage
job 1
:
stage
:
build
script
:
make build dependencies
...
...
@@ -345,6 +360,10 @@ job 3:
job 4
:
stage
:
deploy
script
:
make deploy
job 5
:
stage
:
.post
script
:
make something useful at the end of pipeline
```
#### Using your own Runners
...
...
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