sonar-gitlab-plugin
sonar-gitlab-plugin copied to clipboard
Gitlab 11.5 codeclimate.json wrong format
When trying to upload the codeclimate.json to gitlab I get the following error message:
Uploading artifacts...
codeclimate.json: found 1 matching files
FATAL: unsupported archive format: raw
.gitlab-ci.yml looks as follows:
sonarqube_preview_feature_job:
image: maven:3-jdk-10
stage: quality
tags:
- java
script:
- mvn verify sonar:sonar -Dsonar.host.url=HOST -Dsonar.login=USER -Dsonar.password=PASSWORD -Dsonar.analysis.mode=preview -Dsonar.gitlab.project_id=$CI_PROJECT_ID -Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA -Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME -Dsonar.gitlab.json_mode=CODECLIMATE -Dsonar.gitlab.failure_notification_mode=commit-status
artifacts:
reports:
codequality: codeclimate.json
I also tried to rename the file to gl-code-quality-report.json but with no luck, error message is the same.
Did you try updating your gitlab runner to 11.5? That fixed it for me.