Commit 341724a0 authored by Marcel Amirault's avatar Marcel Amirault

Merge branch 'patch-169' into 'master'

Provide working artifacts:expose_as examples

See merge request gitlab-org/gitlab!35817
parents 2507dfd2 89eaad3d
...@@ -2914,10 +2914,10 @@ For example, to match a single file: ...@@ -2914,10 +2914,10 @@ For example, to match a single file:
```yaml ```yaml
test: test:
script: [ 'echo 1' ] script: [ "echo 'test' > file.txt" ]
artifacts: artifacts:
expose_as: 'artifact 1' expose_as: 'artifact 1'
paths: ['path/to/file.txt'] paths: ['file.txt']
``` ```
With this configuration, GitLab will add a link **artifact 1** to the relevant merge request With this configuration, GitLab will add a link **artifact 1** to the relevant merge request
...@@ -2927,10 +2927,10 @@ An example that will match an entire directory: ...@@ -2927,10 +2927,10 @@ An example that will match an entire directory:
```yaml ```yaml
test: test:
script: [ 'echo 1' ] script: [ "mkdir test && echo 'test' > test/file.txt" ]
artifacts: artifacts:
expose_as: 'artifact 1' expose_as: 'artifact 1'
paths: ['path/to/directory/'] paths: ['test/']
``` ```
Note the following: Note the following:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment