summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlair Lunceford <blunceford@gitlab.com>2019-05-01 22:52:58 +0000
committerEvan Read <eread@gitlab.com>2019-05-01 22:52:58 +0000
commitaff780c4475552a4ebbad7830ad43f14a5fa16cf (patch)
tree5a77288028d153af7555ce723f1c86a161d22b41
parentd80b34394fbce2891b5cdd4f5860768bea63cb10 (diff)
downloadgitlab-ce-aff780c4475552a4ebbad7830ad43f14a5fa16cf.tar.gz
Add example for the artifacts:paths section
-rw-r--r--doc/ci/junit_test_reports.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/ci/junit_test_reports.md b/doc/ci/junit_test_reports.md
index d03c0b68daf..799217c9a08 100644
--- a/doc/ci/junit_test_reports.md
+++ b/doc/ci/junit_test_reports.md
@@ -71,11 +71,11 @@ merge request widget.
NOTE: **Note:**
If you also want the ability to browse JUnit output files, include the
-[`artifacts:paths`](yaml/README.md#artifactspaths) keyword.
+[`artifacts:paths`](yaml/README.md#artifactspaths) keyword. An example of this is shown in the Ruby example below.
### Ruby example
-Use the following job in `.gitlab-ci.yml`:
+Use the following job in `.gitlab-ci.yml`. This includes the `artifacts:paths` keyword to provide a link to the JUnit output file.
```yaml
## Use https://github.com/sj26/rspec_junit_formatter to generate a JUnit report with rspec
@@ -85,6 +85,8 @@ ruby:
- bundle install
- rspec spec/lib/ --format RspecJunitFormatter --out rspec.xml
artifacts:
+ paths:
+ - rspec.xml
reports:
junit: rspec.xml
```