Latest version of sonar-scanner-cli image with sonarqube 10.4.1
sonar-scanner-cli integrated in a gitlab pipeline
With the latest version of sonar-scanner-cli image, we got the following error
Checking out 12345678 as refs/merge-requests/1400/head...
Skipping Git submodules setup
Checking cache for sonarqubeCheck-1...
No URL provided, cache will not be downloaded from shared cache server. Instead a local version of cache will be extracted.
Successfully extracted cache
Downloading artifacts for unitTest (75225)...
Downloading artifacts from coordinator... ok id=75225 responseStatus=200 OK token=xxxxxxxx
shell not found
shell not found
ERROR: Job failed: exit code 1
It stop working on 24th september, when reverting the image from “latest” to the “5.0.1” version, it works fine.
I suspect one of your operations in your script […] is causing the issue. We have changed the base Docker image from Alpine to AmazonLinux, and we have also removed root access, so maybe one of those is responsible for the issue.
Can you try to pinpoint the exact command causing the shell not found?
This is my script block, the first command is a GIT checkout, the following are some “echo” of custom variables to a file
Maybe the “echo” command is not available on AmazonLinux image?