Code_quality job

Hi,

we have some issues with the job. Our job definition looks like this:
code_quality:
image: docker:stable
stage: analyse
variables:
DOCKER_DRIVER: overlay2
HTTP_PROXY: “-----------”
HTTPS_PROXY: “-----------”
NO_PROXY: “localhost, docker”
allow_failure: true
services:
- docker:stable-dind
script:
- export SP_VERSION=$(echo “$CI_SERVER_VERSION” | sed ‘s/^([0-9]).([0-9]).*/\1-\2-stable/’)
- docker run
–env SOURCE_CODE="$PWD"
–volume “$PWD”:/code
–volume /var/run/docker.sock:/var/run/docker.sock
registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION” /code
artifacts:
paths: [gl-code-quality-report.json]

Well we get a report with some findings, but the job takes 20 minutes because its downloading the images on every run.
So we tried the docker-in-docker executor https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#use-docker-in-docker-executor approche and removed the docker:stable-dind service from our job configuration, the second run was reduced to 1 minute but now there is no report file…

WARNING: gl-code-quality-report.json: no matching files
ERROR: No files to upload

Any suggestions would be welcomed

BR
Arthur

have you reviewed the job’s log?

I think 1 minute its to fast to codeclimate. Looks like something crashed and and no report was created.
Keep in mind that you have allow_failure: true in your config so a failed job is marked as passed.

Excuse me if this is to obvious, but the warning only can be caused by codeclimate didn’t run or the docker volumes are miss configured and no file is present in the outer container