gabrie-allaigre / sonar-gitlab-plugin

Add to each commit GitLab in a global commentary on the new anomalies added by this commit and add comment lines of modified files
GNU Lesser General Public License v3.0
713 stars 207 forks source link

Gitlab 11.5 codeclimate.json wrong format #192

Open hubermi opened 5 years ago

hubermi commented 5 years ago

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.

jnovick commented 5 years ago

Did you try updating your gitlab runner to 11.5? That fixed it for me.