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