Property cobertura is not allowed - gitlab-ci.yml
Asked Answered
P

2

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!

Postulant answered 8/5, 2022 at 19:11 Comment(0)
M
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
Mandolin answered 9/5, 2022 at 13:58 Comment(0)
W
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

Womanish answered 8/5, 2022 at 21:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.