diff options
author | Blair Lunceford <blunceford@gitlab.com> | 2019-04-19 20:47:23 +0000 |
---|---|---|
committer | Blair Lunceford <blunceford@gitlab.com> | 2019-04-19 20:47:23 +0000 |
commit | 5d584e856172ed59ab2b49a28f40c1fb25ee42ce (patch) | |
tree | 466f915c608aab7fa31ddea323664da2acd8e56e | |
parent | 9c2b37d7c4621f8284530565fa1d361b12502715 (diff) | |
download | gitlab-ce-5d584e856172ed59ab2b49a28f40c1fb25ee42ce.tar.gz |
Add example for the artifacts:paths section
-rw-r--r-- | doc/ci/junit_test_reports.md | 6 |
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..48e25c6ec8f 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`, which includes the `artifacts:paths` keyword to browse 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: + - /path/to/junit/report reports: junit: rspec.xml ``` |