We have a sonarqube server version 9.9.4.87374 deployed on a windows VM using zip file
We use azure devops task to trigger the analyse
In our devops build pipeline we have the version 5 of the SonarQubePrepare and SonarQubeAnalyze task they are working
but since the v5 are marked as obsolete I try to update to V7 the Prepare task is working but the analyse task is crashing with the error:
ERROR: Validation of project failed:
o To use the property "sonar.branch.name" and analyze branches, Developer Edition or above is required. See https://docs.sonarqube.org/latest/analyzing-source-code/branches/branch-analysis/ for more information.
I’ve try a powershell script to remove the property before launching the analyse task but it’s not working.
We also build from the “develop” branch that is setup as the default branch in azure devops for this repo.
Do I need to update the sonarqube server to latest version?
for a new project I have the same error regarding the version of the task
Since we have a dedicated build server I manually launch the dotnet-sonarscanner task using powershell and push the result and it works in this case
When using v7 of the task, what’s the log output of the Prepare task? There should be a few lines about detecting the default branch.
These log messages are at DEBUG level rather than INFOwhen using v6.
It would be interesting to see if the log messages are the same between versions of the task. You’d have to enable system.debug=true in your pipeline to get the output from v6 of the task.
well now the old V5 task from an other project are crashing on the Analyze task with the error
Fail to process request http://localhost:9000/api/ce/submit?projectKey=xxxxxx
java.lang.IllegalStateException: Current edition does not support branch feature
I might have change something in the sonar.properties that do not please the scanner, but I don’t know what, I’ve reverted the change do to try to use the sonarqube-community-branch-plugin