ERROR: Preparation failed: failed to pull image “gradle:jre11-slim” with specified policies [if-not-present]: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
It eventually fails after 3 tries.
The settings in the .gitlab-ci.yml file are
sonarqube-check:
stage: test
image: gradle:jre11-slim
variables:
However, the project being scanned is Java 8. Do I need to configure it differently in this case or configure the runners differently?
I think this has become a GitLab question, rather than a SonarQube question. We certainly provide scanners you can simply install and run, such as the SonarScanner CLI without needing to pull Docker images. So then the question is whether you can use them with GitLab & unfortunately I just don’t have the background to answer that.