Add note to README about using $CI_COMMIT_REF_SLUG when using forward-slashes

This commit is contained in:
Clemens Sum 2018-06-27 08:39:41 +00:00 committed by Achilleas Pipinellis
parent 1f31803dc7
commit 784eb42172
No known key found for this signature in database
GPG Key ID: A0996FBD3E92C17B
1 changed files with 5 additions and 0 deletions

View File

@ -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