This is a Sonar Scanner issue, not related to Server or IDE, but Server is the closest category.
which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension): SonarQube 2025.3.1, Sonar Scanner CLI Docker Container 10.0.0.1370_5.0.1, Jenkins 2.462.3
We are upgrading the Sonar Scanner CLI container from 5.0.1 to 10.0.0.1370_5.0.1, with the goal of upgrading to latest (7.3), however, the container does not launch successfully in Jenkins. I know there are quite a number of changes in the container architecture it went to the container versioning change. When Jenkins tries to launch the new container we get the following message:
process apparently never started in /tmp/jenkins/workspace/SonarQube_Container_Testing_main@tmp/durable-bbfc43c6
We have already tried 11.X and were having the same issues, so I wanted to go back to the smallest amount of change possible, essentially ruling out any changes related to the Scanner CLI itself. It certainly seems to be related to the container architecture change.
this is a typical file that Jenkins writes (from inside the container) to the Jenkins workspace which has the commands that the script section is calling out. Due to running as scanner-cli not able to start
Update: I was able to get the container (also verified with 11.5.0.2154_7.3.0) to launch in my test pipeline if I specified to run with 1000:1000. So that is a win. Now I need to see if I can make the modifications to the dev pipeline to get a SonarQube scan to execute
We are running the container using the Kubernetes plugin in Jenkins. In order for the SonarQube container to be attached as an agent, there is another JNLP container in the K8s pod which opens up network access between the pod and the host VM. When a pipeline starts, it creates workspace directories with the user running in the JNLP container. So if the JNLP runs with default user, then when the SonarQube container runs it can not write files since it is running as a different user. If the JNLP container is set to run with 1000:1000, the SonarQube container launches successfully since it can write to the directory. The issue I am now running into is multiple containers (with different users) in the same pipeline. I have feeling I won’t be able to solve the issue without changing the permissions on the filesystem, thus affecting overall security level.