Commit b0df7335 authored by Vicken Simonian's avatar Vicken Simonian

Doc: Add example to Generate both json and html reports

parent 12de7161
...@@ -284,6 +284,21 @@ code_quality: ...@@ -284,6 +284,21 @@ code_quality:
paths: [gl-code-quality-report.html] paths: [gl-code-quality-report.html]
``` ```
It's also possible to generate both JSON and HTML report files by defining
another job and using `extends: code_quality`:
```yaml
include:
- template: Code-Quality.gitlab-ci.yml
code_quality_html:
extends: code_quality
variables:
REPORT_FORMAT: html
artifacts:
paths: [gl-code-quality-report.html]
```
## Extending functionality ## Extending functionality
### Using Analysis Plugins ### Using Analysis Plugins
......
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