From 784eb42172edb7e3b0d3820bc622e3aed2a41e8c Mon Sep 17 00:00:00 2001 From: Clemens Sum Date: Wed, 27 Jun 2018 08:39:41 +0000 Subject: Add note to README about using $CI_COMMIT_REF_SLUG when using forward-slashes --- doc/ci/yaml/README.md | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.1