10

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!

2 Answers 2

16

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
0
3

If you're on GitLab 15.0, artifacts:report:cobertura has been deprecated and replaced by artifacts:reports:coverage_report.

Reference: https://docs.gitlab.com/ee/update/deprecations.html#artifactsreportcobertura-keyword

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.