After excluding the .xml files in the pipeline prepare task, it worked. In our setup the SonarQube UI for the webbrowser seems to have no effect at all.
#Your build pipeline references an undefined variable named ‘Parameters.projectKey’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See YAML schema reference | Microsoft Learn
#Your build pipeline references an undefined variable named ‘Parameters.projectKey’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972
steps:
- task: sonarsource.sonarqube.15B84CA1-B62F-4A2A-A403-89B77A063157.SonarQubePrepare@6
displayName: 'Prepare analysis on SonarQube'
inputs:
SonarQube: Sonar
projectKey: '$(Parameters.projectKey)'
projectName: 'Quality Check'
extraProperties: |
# Additional properties that will be passed to the scanner,
# Put one key=value per line, example:
sonar.exclusions=**/*.bin,**/*.xml,**/*.xsd
sonar.vbnet.vscoveragexml.reportsPaths=**/*.coveragexml
sonar.verbose=true
Thanks Denis!