sonar-gitlab-plugin icon indicating copy to clipboard operation
sonar-gitlab-plugin copied to clipboard

Gitlab 11.5 codeclimate.json wrong format

Open hubermi opened this issue 6 years ago • 1 comments

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.

hubermi avatar Nov 14 '18 07:11 hubermi

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

jnovick avatar Dec 27 '18 19:12 jnovick