gitlabgitlab-cipipelinecobertura

Gitlab pipeline - reports config contains unknown keys: cobertura


I'm not able run the gitlab pipeline due to this error

Invalid CI config YAML file
jobs:run tests:artifacts:reports config contains unknown keys: cobertura

Solution

  • Check the latest correct doc here: https://docs.gitlab.com/ee/ci/yaml/artifacts_reports.html#artifactsreportscoverage_report

    Some of the docs are in somewhat of a messy state right now, due to the new release as mentioned.

    This was the fix for me:

      artifacts:
        expire_in: 2 days
        reports:
          coverage_report:
            coverage_format: cobertura
            path: python_app/coverage.xml