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
1d76e531
Commit
1d76e531
authored
Sep 14, 2018
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Copyedit extends CI yaml docs
parent
068a0a18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+13
-12
No files found.
doc/ci/yaml/README.md
View file @
1d76e531
...
@@ -78,13 +78,13 @@ A job is defined by a list of parameters that define the job behavior.
...
@@ -78,13 +78,13 @@ A job is defined by a list of parameters that define the job behavior.
### `extends`
### `extends`
> Introduced in GitLab 11.3
> Introduced in GitLab 11.3
.
`extends`
defines an entry name that a job
,
that uses
`extends`
is going to
`extends`
defines an entry name that a job that uses
`extends`
is going to
inherit from.
inherit from.
`extends`
in an alternative to using
[
YAML anchors
](
#anchors
)
that
is a little
It is an alternative to using
[
YAML anchors
](
#anchors
)
and
is a little
more flexible and readable
.
more flexible and readable
:
```
yaml
```
yaml
.tests
:
.tests
:
...
@@ -102,10 +102,10 @@ rspec:
...
@@ -102,10 +102,10 @@ rspec:
-
$RSPEC
-
$RSPEC
```
```
In the example above
the
`rspec`
job is going to inherit from
`.tests`
In the example above
, the
`rspec`
job is going to inherit from the
`.tests`
template
. GitLab will perform a reverse deep merge, what
means that it will
template
job. GitLab will perform a reverse deep merge, which
means that it will
merge
`rspec`
contents into
`.tests`
recursively, and it
is going to result in
merge
the
`rspec`
contents into
`.tests`
recursively, and this
is going to result in
following configuration of the
`rspec`
job:
the following
`rspec`
job:
```
yaml
```
yaml
rspec
:
rspec
:
...
@@ -118,13 +118,12 @@ rspec:
...
@@ -118,13 +118,12 @@ rspec:
-
$RSPEC
-
$RSPEC
```
```
`.tests`
in this example is a
[
hidden key
](
#hidden-keys-jobs
)
, but it
i
s
`.tests`
in this example is a
[
hidden key
](
#hidden-keys-jobs
)
, but it
'
s
possible to inherit from regular jobs as well.
possible to inherit from regular jobs as well.
`extends`
supports multi-level inheritance, however it is not recommended to
`extends`
supports multi-level inheritance, however it is not recommended to
use more than three levels of inheritance. Maximum nesting level supported is
use more than three levels. The maximum nesting level that is supported is 10.
10 levels.
The following example has two levels of inheritance:
```
yaml
```
yaml
.tests
:
.tests
:
...
@@ -150,6 +149,8 @@ spinach:
...
@@ -150,6 +149,8 @@ spinach:
script
:
rake spinach
script
:
rake spinach
```
```
`extends`
works across configuration files combined with
[
`include`
](
#include
)
.
### `pages`
### `pages`
`pages`
is a special job that is used to upload static content to GitLab that
`pages`
is a special job that is used to upload static content to GitLab that
...
...
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