Commit c0dfeca4 authored by Marcel Amirault's avatar Marcel Amirault

Merge branch 'vicken-cq-docs' into 'master'

Doc: Add example to Generate both json and html reports

See merge request gitlab-org/gitlab!46703
parents f367f7df b0df7335
......@@ -284,6 +284,21 @@ code_quality:
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
### 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