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
eb62e862
Commit
eb62e862
authored
Feb 22, 2021
by
Marcel Amirault
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add crosslinks for yaml reference tags
parent
cb5ba178
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+6
-5
No files found.
doc/ci/yaml/README.md
View file @
eb62e862
...
...
@@ -355,8 +355,8 @@ You can also store template files in a central repository and `include` them in
otherwise the external file is not included.
You can't use
[
YAML anchors
](
#anchors
)
across different YAML files sourced by
`include`
.
You can only refer to anchors in the same file.
Instead of YAML anchors, you can
use
the
[
`extends` keyword
](
#extends
)
.
You can only refer to anchors in the same file.
To reuse configuration from different
YAML files, use
[
`!reference` tags
](
#reference-tags
)
or
the
[
`extends` keyword
](
#extends
)
.
`include`
supports the following inclusion methods:
...
...
@@ -4387,9 +4387,10 @@ Use anchors to duplicate or inherit properties. Use anchors with [hidden jobs](#
to provide templates for your jobs. When there are duplicate keys, GitLab
performs a reverse deep merge based on the keys.
You can't use YAML anchors across multiple files when leveraging the
[
`include`
](
#include
)
feature. Anchors are only valid in the file they were defined in. Instead
of using YAML anchors, you can use the
[
`extends` keyword
](
#extends
)
.
You can't use YAML anchors across multiple files when using the
[
`include`
](
#include
)
keyword. Anchors are only valid in the file they were defined in. To reuse configuration
from different YAML files, use
[
`!reference` tags
](
#reference-tags
)
or the
[
`extends` keyword
](
#extends
)
.
The following example uses anchors and map merging. It creates two jobs,
`test1`
and
`test2`
, that inherit the
`.job_template`
configuration, each
...
...
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