SonarQube Server 10.7
Running .NET Scanner on Azure DevOps Server in an Enterprise Environment.
Since Upgrading to Sonar 10.7 all our Builds with Sonar aren’t working any more because of the JRE auto-provisioning feature. Can’t connect to Sonar Enterprise Server because of SSL Error.
How can this feature be disabled globaly?
Only working way i found to disable it in each Pipeline. So i will have to update hundrets of Pipelines.
- task: SonarQubePrepare@7
displayName: 'Prepare analysis on SonarQube'
inputs:
SonarQube: 'Sonar Enterprise'
projectKey: '$(SONAR_ProjectKey)'
projectName: '$(SONAR_ProjectName)'
projectVersion: '$(Build.BuildNumber)'
extraProperties: |
sonar.scanner.skipJreProvisioning=true
#Buildsteps
#....
- task: SonarQubeAnalyze@7
displayName: Run Code Analysis
inputs:
jdkversion: 'JAVA_HOME_17_X64'
Setting following ENV Vars didn’t work:
SONAR_SCANNER_SKIP_JRE_PROVISIONING=true
SONAR_SCANNER_JAVA_EXE_PATH=<Java Path>
JAVA_HOME=<Java Path>
JAVA_HOME_17_x64=<Java Path>
The Task always is overwriting the JAVA_HOME Variable:
Overwriting the value of environment variable 'JAVA_HOME'. Old value: <Java Path>, new value: C:\Users\serviceuser\.sonar\cache\4bafe2e94439c8193fc8c68247
I would assume that if I set a JAVA_HOME variable, this would be used by default and not simply overwritten.
If I don’t want that, I don’t set a JAVA_HOME variable.
THX