artifacts:reports:accessibilityartifacts:reports:api_fuzzingartifacts:reports:browser_performanceartifacts:reports:cluster_image_scanningartifacts:reports:cobertura(DEPRECATED)artifacts:reports:coverage_reportartifacts:reports:codequalityartifacts:reports:container_scanningartifacts:reports:coverage_fuzzingartifacts:reports:dastartifacts:reports:dependency_scanningartifacts:reports:dotenvartifacts:reports:junitartifacts:reports:license_scanningartifacts:reports:load_performanceartifacts:reports:metricsartifacts:reports:requirementsartifacts:reports:sastartifacts:reports:secret_detectionartifacts:reports:terraform
GitLab CI/CD artifacts reports types
Use artifacts:reports to:
- Collect test reports, code quality reports, security reports, and other artifacts generated by included templates in jobs.
- Some of these reports are used to display information in:
- Merge requests.
- Pipeline views.
- Security dashboards.
The test reports are collected regardless of the job results (success or failure).
You can use artifacts:expire_in to set up an expiration
date for their artifacts.
Some artifacts:reports types can be generated by multiple jobs in the same pipeline, and used by merge request or
pipeline features from each job.
To be able to browse the report output files, include the artifacts:paths keyword.
artifacts:reports:accessibility
The For more information, see Accessibility testing.
The GitLab can display the results of one or more reports in:
The GitLab can display the results of one report in the merge request
browser performance testing widget.
GitLab cannot display the combined results of multiple The GitLab can display the results of one or more reports in:
The GitLab can display the results of one or more reports in the merge request
diff annotations.
Cobertura was originally developed for Java, but there are many third-party ports for other languages such as
JavaScript, Python, and Ruby.
Use The collected coverage report is uploaded to GitLab as an artifact.
GitLab can display the results of coverage report in the merge request
diff annotations.
The GitLab can display the results of:
The GitLab can display the results of one or more reports in:
The The GitLab can display the results of one or more reports in:
The GitLab can display the results of one or more reports in:
The The collected variables are registered as runtime-created variables of the job,
which you can use to set dynamic environment URLs after a job finishes.
If duplicate environment variables are present in a The exceptions to the
The See Unit test reports for more details and examples.
Below is an example of collecting a JUnit report format XML file from Ruby’s RSpec test tool:
GitLab can display the results of one or more reports in:
Some JUnit tools export to multiple XML files. You can specify multiple test report paths in a single job to
concatenate them into a single file. Use either:
Introduced in GitLab 12.8.
The License Compliance report collects Licenses. The License
Compliance report uploads to GitLab as an artifact.
GitLab can display the results of one or more reports in:
The GitLab can display the results of only one report in the merge request
load testing widget.
GitLab cannot display the combined results of multiple The GitLab can display the results of one or more reports in the merge request
metrics reports widget.
The GitLab can display the results of one or more reports in the
project requirements.
The GitLab can display the results of one or more reports in:
The GitLab can display the results of one or more reports in:
The GitLab can display the results of one or more reports in the merge request
terraform widget.
For more information, see Output
If you didn't find what you were looking for,
search the docs.
If you want help with something specific and could use community support,
.
For problems setting up or using this feature (depending on your GitLab
subscription).accessibility report uses GitLab can display the results of one or more reports in the merge request
accessibility widget.
artifacts:reports:api_fuzzing
api_fuzzing report collects API Fuzzing bugs
as artifacts.
artifacts:reports:browser_performance
browser_performance report collects Browser Performance Testing metrics
as artifacts.
browser_performance reports.
artifacts:reports:cluster_image_scanning
cluster_image_scanning report collects CLUSTER_IMAGE_SCANNING vulnerabilities. The collected
CLUSTER_IMAGE_SCANNING report uploads to GitLab as an artifact.
artifacts:reports:cobertura (DEPRECATED)
cobertura report collects Cobertura coverage XML files.
The collected Cobertura coverage reports upload to GitLab as an artifact.
artifacts:reports:coverage_report
coverage_report to collect coverage report in Cobertura format, similar to artifacts:reports:cobertura.
artifacts:reports:coverage_report cannot be used at the same time with artifacts:reports:cobertura.artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: coverage/cobertura-coverage.xml
artifacts:reports:codequality
codequality report collects code quality issues. The
collected code quality report uploads to GitLab as an artifact.
artifacts:reports:container_scanning
container_scanning report collects Container Scanning vulnerabilities.
The collected Container Scanning report uploads to GitLab as an artifact.
artifacts:reports:coverage_fuzzing
coverage_fuzzing report collects coverage fuzzing bugs.
The collected coverage fuzzing report uploads to GitLab as an artifact.
GitLab can display the results of one or more reports in:
artifacts:reports:dast
dast report collects DAST vulnerabilities. The collected DAST
report uploads to GitLab as an artifact.
artifacts:reports:dependency_scanning
dependency_scanning report collects Dependency Scanning vulnerabilities.
The collected Dependency Scanning report uploads to GitLab as an artifact.
artifacts:reports:dotenv
dotenv report collects a set of environment variables as artifacts.
dotenv report:
_).
.env file is 5 KB.
This limit can be changed on self-managed instances.
dotenv_variables application limit.
.env file is not supported.
.env file can’t have empty lines or comments (starting with #).
env file cannot have spaces or newline characters (\n), including when using single or double quotes.
key = 'value' -> {key: "value"}) is not supported.
artifacts:reports:junit
junit report collects JUnit report format XML files.
The collected Unit test reports upload to GitLab as an artifact. Although JUnit was originally developed in Java, there
are many third-party ports for other languages such as JavaScript, Python, and Ruby.
rspec:
stage: test
script:
- bundle install
- rspec --format RspecJunitFormatter --out rspec.xml
artifacts:
reports:
junit: rspec.xml
junit: rspec-*.xml).
junit: [rspec-1.xml, rspec-2.xml, rspec-3.xml]).
junit: [rspec.xml, test-results/TEST-*.xml]).
artifacts:reports:license_scanning
artifacts:reports:load_performance
load_performance report collects Load Performance Testing metrics.
The report is uploaded to GitLab as an artifact.
load_performance reports.
artifacts:reports:metrics
metrics report collects Metrics. The collected Metrics report uploads to GitLab as an
artifact.
artifacts:reports:requirements
requirements report collects requirements.json files. The collected Requirements report uploads to GitLab as an
artifact and existing requirements are marked as Satisfied.
artifacts:reports:sast
sast report collects SAST vulnerabilities. The collected SAST
report uploads to GitLab as an artifact.
artifacts:reports:secret_detection
secret-detection report collects detected secrets.
The collected Secret Detection report is uploaded to GitLab.
artifacts:reports:terraform
terraform report obtains a Terraform tfplan.json file. JQ processing required to remove credentials.
The collected Terraform plan report uploads to GitLab as an artifact.
terraform plan information into a merge request.
Help & feedback
Docs
Edit this page
to fix an error or add an improvement in a merge request.
Create an issue
to suggest an improvement to this page.
Product
Create an issue
if there's something you don't like about this feature.
Propose functionality
by submitting a feature request.
to help shape new features.
Feature availability and product trials
to see all GitLab tiers and features, or to upgrade.
with access to all features for 30 days.
Get Help