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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
6481b44b
Commit
6481b44b
authored
Oct 08, 2018
by
Ronald van Zon
Committed by
Achilleas Pipinellis
Oct 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update explanation about the `extends` feature
parent
74e49d2f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+12
-4
No files found.
doc/ci/yaml/README.md
View file @
6481b44b
...
@@ -102,10 +102,13 @@ rspec:
...
@@ -102,10 +102,13 @@ rspec:
-
$RSPEC
-
$RSPEC
```
```
In the example above, the
`rspec`
job is going to inherit from the
`.tests`
In the example above, the
`rspec`
job inherits from the
`.tests`
template job.
template job. GitLab will perform a reverse deep merge, which means that it will
GitLab will perform a reverse deep merge based on the keys. GitLab will:
merge the
`rspec`
contents into
`.tests`
recursively, and this is going to result in
the following
`rspec`
job:
-
Merge the
`rspec`
contents into
`.tests`
recursively.
-
Not merge the values of the keys.
This results in the following
`rspec`
job:
```
yaml
```
yaml
rspec
:
rspec
:
...
@@ -118,6 +121,11 @@ rspec:
...
@@ -118,6 +121,11 @@ rspec:
-
$RSPEC
-
$RSPEC
```
```
NOTE:
**Note:**
Note that
`script: rake test`
has been overwritten by
`script: rake rspec`
.
If you do want to include the
`rake test`
, have a look at
[
before_script-and-after_script
](
#before_script-and-after_script
)
.
`.tests`
in this example is a
[
hidden key
](
#hidden-keys-jobs
)
, but it'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.
...
...
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