Hi,
Don’t understand why my codeclimate report is not processed by GitLab.
I always get the message “Failed to load codeclimate report” on my MR.
On my CI job I have this :
$ docker run --env CODECLIMATE_CODE="$PWD" --volume /home/bcohen/test/codeclimate/pool-service3/application/classes/Batch:/code --volume /tmp/cc:/tmp/cc codeclimate/codeclimate-phpcodesniffer > codeclimate.json
$ cat codeclimate.json
{"type":"issue","check_name":"PSR2 Classes PropertyDeclaration Underscore","description":"Property...}
Uploading artifacts...codeclimate.json: found 1 matching files Uploading artifacts to coordinator... ok id=118 responseStatus=201 Created token=x_vDRosUJob succeeded
My .gitlabci :
quality:
image: docker:stablevariables:
DOCKER_DRIVER: overlay2allow_failure: true
services:
- docker:dindscript:
- docker run
–env CODECLIMATE_CODE=“$PWD”
–volume :/code
–volume /tmp/cc:/tmp/cc
codeclimate/codeclimate-phpcodesniffer > codeclimate.json- cat codeclimate.json
artifacts:
reports:
codequality: codeclimate.json
My runner :
concurrent = 1
check_interval = 0[session_server]
session_timeout = 1800[[runners]]
name = “ben”
url = “http://pc-dev-docker1.int.rtblw.com:1025/”
token = “XKQyk56xVVaLusyYes2y”
executor = “docker”[runners.docker]
tls_verify = false
image = “docker:latest”
privileged = true
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = [“/var/run/docker.sock:/var/run/docker.sock”, “/cache”]
cache_dir = “cache”
extra_hosts = [“mygitlab.com:172.17.0.2”]
shm_size = 0
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
GitLab Enterprise Edition [11.6.0-ee]