I´m using SonarQube Scanner to analyze my code. Everything worked fine and the analysis was uploaded to Sonarcloud, but since last week I am getting this error:
ERROR: Error during SonarQube Scanner execution
java.lang.IllegalStateException: The “build-wrapper-dump.json” file was found empty.
The code should be analysed locally with the commands:
- build-wrapper-win-x86-64.exe --out-dir bw-output make clean all
- sonar-scanner.bat -D"sonar.projectKey=$PROJECTKEY" -D"sonar.organization=$ORGANIZATION" -D"sonar.sources=./src/ARYA/src" -D"sonar.cfamily.build-wrapper-output=bw-output" -D"sonar.host.url=https://sonarcloud.io" -D"sonar.login=$SONAR_TOKEN"
where $SONAR_TOKEN is my created token at sonarcloud.io -> myAccount.
In both, locally and via remote bitbucket Pipeline testing, I always get that error message. Even after going back to the latest commit where the analysis ran perfectly and was uploaded to sonarcloud, the analysis still fails.
Did something change in SonarQube?
I´m using the latest version of SonarScanner which should be 220.127.116.114 and, as far as I know, the latest version of the build-wrapper.
When comparing the logs of the bitbucket-pipeline after it was succesful with the log of a pipeline that failed, there is just one difference. In the failed analysis the scanner succesfully loads a repository and after that the same warnings appear (which can also be seen in local testing). Then the execution failes:
Do you have any idea, what I am possibly missing?