Commit 89eaad3d authored by Ben Bodenmiller's avatar Ben Bodenmiller

Provide working artifacts:expose_as examples

parent e7f4c967
......@@ -2888,10 +2888,10 @@ For example, to match a single file:
```yaml
test:
script: [ 'echo 1' ]
script: [ "echo 'test' > file.txt" ]
artifacts:
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
......@@ -2901,10 +2901,10 @@ An example that will match an entire directory:
```yaml
test:
script: [ 'echo 1' ]
script: [ "mkdir test && echo 'test' > test/file.txt" ]
artifacts:
expose_as: 'artifact 1'
paths: ['path/to/directory/']
paths: ['test/']
```
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