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
93feedb4
Commit
93feedb4
authored
Apr 06, 2018
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document unsupported variables for dynamic environments
Conflicts: doc/ci/variables/README.md
parent
8fe6b0a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
+18
-5
doc/ci/environments.md
doc/ci/environments.md
+12
-3
doc/ci/variables/README.md
doc/ci/variables/README.md
+6
-2
No files found.
doc/ci/environments.md
View file @
93feedb4
...
@@ -247,10 +247,19 @@ declaring their names dynamically in `.gitlab-ci.yml`. Dynamic environments is
...
@@ -247,10 +247,19 @@ declaring their names dynamically in `.gitlab-ci.yml`. Dynamic environments is
the basis of
[
Review apps
](
review_apps/index.md
)
.
the basis of
[
Review apps
](
review_apps/index.md
)
.
>**Note:**
>**Note:**
The
`name`
and
`url`
parameters can use
any
of the defined CI variables,
The
`name`
and
`url`
parameters can use
most
of the defined CI variables,
including predefined, secure variables and
`.gitlab-ci.yml`
including predefined, secure variables and
`.gitlab-ci.yml`
[
`variables`
](
yaml/README.md#variables
)
.
[
`variables`
](
yaml/README.md#variables
)
. You however cannot use variables
You however cannot use variables defined under
`script`
or on the Runner's side.
defined under
`script`
or on the Runner's side. There are other variables that
are unsupported in environment name context:
-
`CI_JOB_ID`
-
`CI_JOB_TOKEN`
-
`CI_BUILD_ID`
-
`CI_BUILD_TOKEN`
-
`CI_REGISTRY_USER`
-
`CI_REGISTRY_PASSWORD`
-
`CI_REPOSITORY_URL`
-
`CI_ENVIRONMENT_URL`
GitLab Runner exposes various
[
environment variables
][
variables
]
when a job runs,
GitLab Runner exposes various
[
environment variables
][
variables
]
when a job runs,
and as such, you can use them as environment names. Let's add another job in
and as such, you can use them as environment names. Let's add another job in
...
...
doc/ci/variables/README.md
View file @
93feedb4
...
@@ -568,12 +568,15 @@ You can find a full list of unsupported variables below:
...
@@ -568,12 +568,15 @@ You can find a full list of unsupported variables below:
-
`CI_REPOSITORY_URL`
-
`CI_REPOSITORY_URL`
-
`CI_ENVIRONMENT_URL`
-
`CI_ENVIRONMENT_URL`
These variables are also not supported in a contex of a
[
dynamic environment name
][
dynamic-environments
]
.
### Secret variables with an environment scope
### Secret variables with an environment scope
We do support secret variables defined with an environment scope. Given that
We do support secret variables defined with an environment scope. Given that
there is a secret variable
`$STAGING_SECRET`
defined in a scope of
there is a secret variable
`$STAGING_SECRET`
defined in a scope of
`review/staging/*`
, following job
is going to be created, based on the
`review/staging/*`
, following job
that is using dynamic environments feature,
matching variable expression.
is going to be created, based on the
matching variable expression.
```
yaml
```
yaml
my-job
:
my-job
:
...
@@ -599,4 +602,5 @@ my-job:
...
@@ -599,4 +602,5 @@ my-job:
[
triggers
]:
../triggers/README.md#pass-job-variables-to-a-trigger
[
triggers
]:
../triggers/README.md#pass-job-variables-to-a-trigger
[
subgroups
]:
../../user/group/subgroups/index.md
[
subgroups
]:
../../user/group/subgroups/index.md
[
builds-policies
]:
../yaml/README.md#only-and-except-complex
[
builds-policies
]:
../yaml/README.md#only-and-except-complex
[
dynamic-environments
]:
../environments.md#dynamic-environments
[
trigger-job-token
]:
../triggers/README.md#ci-job-token
[
trigger-job-token
]:
../triggers/README.md#ci-job-token
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