diff options
author | Marcia Ramos <virtua.creative@gmail.com> | 2018-06-28 16:16:22 +0000 |
---|---|---|
committer | Marcia Ramos <virtua.creative@gmail.com> | 2018-06-28 16:16:22 +0000 |
commit | 9ad97abfec59cde15b240a5e81a1b1caf1b2a4fc (patch) | |
tree | ed46ba21d056436629d09a2527b2aa201ab8d7ac | |
parent | e38af20cc6eae4f001fd98b0450f00f496a278d0 (diff) | |
parent | 784eb42172edb7e3b0d3820bc622e3aed2a41e8c (diff) | |
download | gitlab-ce-40639-mr-on-a-branch-with-no-changes-indicates-it-has-been-deployed-to-production.tar.gz |
Merge branch 'docs/ci-commit-ref-slug' into 'master'40639-mr-on-a-branch-with-no-changes-indicates-it-has-been-deployed-to-production
Add note to README about using $CI_COMMIT_REF_SLUG when using forward-slashes
See merge request gitlab-org/gitlab-ce!20209
-rw-r--r-- | doc/ci/yaml/README.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/ci/yaml/README.md b/doc/ci/yaml/README.md index 26dcf67fe23..096b64eb881 100644 --- a/doc/ci/yaml/README.md +++ b/doc/ci/yaml/README.md @@ -942,6 +942,11 @@ useful when you'd like to download the archive from GitLab. The `artifacts:name` variable can make use of any of the [predefined variables](../variables/README.md). The default name is `artifacts`, which becomes `artifacts.zip` when downloaded. +NOTE: **Note:** +If your branch-name contains forward slashes +(e.g. `feature/my-feature`) it is advised to use `$CI_COMMIT_REF_SLUG` +instead of `$CI_COMMIT_REF_NAME` for proper naming of the artifact. + To create an archive with a name of the current job: ```yaml |