I try to include Gitlab Code Quality in my pipeline. I host Gitlab on a windows 10 machine. After reading documentation about code quality I was tried all examples, with docker, without docker, with include but the pipeline still throws error WARNING: gl-code-quality-report.json: no matching files
ERROR: No files to upload
ERROR: Job failed: exit status 1
Here is the job where I try with docker. I forget to say that Gitlab server does not in a container.
code_quality:
image: docker:stable
variables:
DOCKER_DRIVER: overlay2
SP_VERSION: 0.85.6
allow_failure: true
services:
- docker:stable-dind
script:
- docker run
--env SOURCE_CODE="$PWD"
--volume "$PWD":/code
--volume /var/run/docker.sock:/var/run/docker.sock
"registry.gitlab.com/gitlab-org/ci-cd/codequality:$SP_VERSION" /code
artifacts:
reports:
codequality: gl-code-quality-report.json