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
43f432c2
Commit
43f432c2
authored
Feb 28, 2018
by
Mayra Cabrera
Committed by
Kamil Trzciński
Feb 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document edge cases for gitlab-ci.yml `include` keyword
parent
61bdccf4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+10
-1
No files found.
doc/ci/yaml/README.md
View file @
43f432c2
...
@@ -367,7 +367,7 @@ skip the download step.
...
@@ -367,7 +367,7 @@ skip the download step.
Using the
`include`
keyword, you can allow the inclusion of external YAML files.
Using the
`include`
keyword, you can allow the inclusion of external YAML files.
In the following example, the content of
`.before-script-template.yml`
will be
In the following example, the content of
`.before-script-template.yml`
will be
automatically fetched and evaluated along with the content of
`.gitlab-ci.yml`
:
automatically fetched and evaluated along with the content of
`.gitlab-ci.yml`
:
```
yaml
```
yaml
...
@@ -424,6 +424,9 @@ include:
...
@@ -424,6 +424,9 @@ include:
your configuration file is. In other words, when using a **local file**, make
your configuration file is. In other words, when using a **local file**, make
sure that both `.gitlab-ci.yml` and the local file are on the same branch.
sure that both `.gitlab-ci.yml` and the local file are on the same branch.
NOTE: **Note:**
We don't support the inclusion of local files through Git submodules paths.
-
**remote**
in a different location, accessed using HTTP/HTTPS, referenced
-
**remote**
in a different location, accessed using HTTP/HTTPS, referenced
using the full URL. For example:
using the full URL. For example:
...
@@ -431,6 +434,9 @@ include:
...
@@ -431,6 +434,9 @@ include:
include: 'https://gitlab.com/awesome-project/raw/master/.gitlab-ci-template.yml'
include: 'https://gitlab.com/awesome-project/raw/master/.gitlab-ci-template.yml'
```
```
NOTE: **Note:**
The remote file must be publicly accessible through a simple GET request, as we don't support authentication schemas in the remote URL.
---
---
Since external files defined by `include` are evaluated first, the content of
Since external files defined by `include` are evaluated first, the content of
...
@@ -492,6 +498,9 @@ In this case, the variables `POSTGRES_USER`, `POSTGRES_PASSWORD` and
...
@@ -492,6 +498,9 @@ In this case, the variables `POSTGRES_USER`, `POSTGRES_PASSWORD` and
`
autodevops-template.yml` will be overridden by the ones defined in
`
autodevops-template.yml` will be overridden by the ones defined in
`
.gitlab-ci.yml`.
`
.gitlab-ci.yml`.
NOTE
:
*
*Note
:**
Momentarily the [CI Lint](https://gitlab.com/ci/lint) does not support the `include` keyword.
## Jobs
## Jobs
`
.gitlab-ci.yml` allows you to specify an unlimited number of jobs. Each job
`
.gitlab-ci.yml` allows you to specify an unlimited number of jobs. Each job
...
...
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