Search code examples
gitlab-cicobertura

Property cobertura is not allowed - gitlab-ci.yml


In our gitlab-ci.yml file, we have include reports in our testing stage from cobertura.

The yml worked fine up until a few days ago, and although literally nothing has been changed on the yml file, it is now being rejected as invalid.

The error is Property cobertura is not allowed. screenshot of our artifacts for the invalid job

Since nothing has changed in our code, i'm wondering if there is an update on gitlab maybe or if there is a setting i need to change that someone may have altered by accident.

Not sure if it's helpful, but here is the error on gitlab.. screenshot of gitlab error

Thanks for any help!


Solution

  • As it was mentioned, the artifacts:report:cobertura has been deprecated. You can replace the

    cobertura: backend/coverage/cobertura-coverage.xml
    

    with the following:

    coverage_report:
        coverage_format: cobertura
        path: backend/coverage/cobertura-coverage.xml