Failed to load codeclimate report

Hi,

I don’t succeed setting up code quality on my gitlab instance (GitLab Enterprise Edition 11.6.0-ee. My runner runs in docker-in docker mode.

My .gitlab-ci.yaml :

codequality:
  image: docker:stable

  variables:
    DOCKER_DRIVER: overlay

  allow_failure: true

  services:
    - docker:dind

  script:
    - docker run
        --env CODECLIMATE_CODE="$PWD"
        --volume "$PWD":/code
        --volume /var/run/docker.sock:/var/run/docker.sock
        --volume /tmp/cc:/tmp/cc
        codeclimate/codeclimate-phpcodesniffer > codeclimate.json

  artifacts:
    reports:
      codequality: codeclimate.json

And the job output:

Running with gitlab-runner 11.7.0 (8bb608ff)
  on ben V4QwygDy
Using Docker executor with image docker:stable ...
Starting service docker:dind ...
Pulling docker image docker:dind ...
Using docker image sha256:5b626cc3459ad077146e8aac1fbe25f7099d71c6765efd6552b9209ca7ea4dc1 for docker:dind ...
Waiting for services to be up and running...
Pulling docker image docker:stable ...
Using docker image sha256:73d492654a095a2f91078b2dfacd0cfe1a1fe25412fac54b4eb2f5a9609ad418 for docker:stable ...
Running on runner-V4QwygDy-project-1-concurrent-0 via 2dec2584b8d7...
Fetching changes...
Removing codeclimate.json
HEAD is now at c418e6bd test
From http://mygitlab.com/bcohen/my_project
   c418e6bd..428c9cf9  bcohtest   -> origin/bcohtest
Checking out 428c9cf9 as bcohtest...
Skipping Git submodules setup
$ docker run --env CODECLIMATE_CODE="$PWD" --volume "$PWD":/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate-phpcodesniffer > codeclimate.json
Uploading artifacts...
codeclimate.json: found 1 matching files           
Uploading artifacts to coordinator... ok            id=91 responseStatus=201 Created token=z_yKhzzv

And the MR :

Could you help me ?

2 Likes