summaryrefslogtreecommitdiff
path: root/doc/ci/yaml
diff options
context:
space:
mode:
authorJohn Spaetzel <john.spaetzel@gmail.com>2017-04-14 19:01:52 -0400
committerAchilleas Pipinellis <axilleas@axilleas.me>2017-06-06 15:02:03 +0200
commit1d0219a52660f4b242a085c1a34311714bb384cf (patch)
treee6e0cae12296e54da9350187c901338ec6703843 /doc/ci/yaml
parent34f925fe0bebdc7212c1c960678114a4e44828ef (diff)
downloadgitlab-ce-1d0219a52660f4b242a085c1a34311714bb384cf.tar.gz
Add PowerShell to CI variable docsdocs/powershell-ci-vars
Diffstat (limited to 'doc/ci/yaml')
-rw-r--r--doc/ci/yaml/README.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/ci/yaml/README.md b/doc/ci/yaml/README.md
index 2c9aa437932..52d7a33fc9d 100644
--- a/doc/ci/yaml/README.md
+++ b/doc/ci/yaml/README.md
@@ -297,6 +297,15 @@ cache:
untracked: true
```
+If you use **Windows PowerShell** to run your shell scripts you need to replace
+`$` with `$env:`:
+
+```yaml
+cache:
+ key: "$env:CI_JOB_STAGE/$env:CI_COMMIT_REF_NAME"
+ untracked: true
+```
+
## Jobs
`.gitlab-ci.yml` allows you to specify an unlimited number of jobs. Each job
@@ -909,6 +918,16 @@ job:
untracked: true
```
+If you use **Windows PowerShell** to run your shell scripts you need to replace
+`$` with `$env:`:
+
+```yaml
+job:
+ artifacts:
+ name: "$env:CI_JOB_STAGE_$env:CI_COMMIT_REF_NAME"
+ untracked: true
+```
+
#### artifacts:when
> Introduced in GitLab 8.9 and GitLab Runner v1.3.0.