The extension will use the Service connection (so the host url and the token that you set inside it) to set the sonar.login that will be passed to the Scanner for MSBuild and to authenticate API calls. Can you make sure that this part is working well ?
Would it be possible to have a log of the Prepare analysis configuration task please, in debug ? (you can add the system.debug = true pipeline variable).
Tell me if you need to share it privately, i’ll send you a PM.
Have you created this service connection a long time ago ? Sounds like the sonar.password value is set, which is not expected, unless you set it manually somewhere ?
Thanks ! I identified something on the extension, but that doesn’t seem to occur that much (setting the sonar.password i mean), i’ll have a look and see what i can do here.
Can you try to copy/past a newly generated token to the service connection ? Please note that this is the one to generate in the Security menu of your account on SonarQube, and make sure that you copy it without spaces of “:” character.
Can you also try to specify a version in your SonarQubePrepare task version, by writing SonarQubePrepare@4.11.0 instead of SonarQubePrepare@4
Can you tell me which build version of Azure DevOps you have currently ?
For this I am getting: ‘Task reference must be in the format @. For example MyTask@2. The following task reference format is invalid: ‘SonarQubePrepare@4.11.0’’
its : Version Dev17.M153.3
Done, copy it with the ‘copy’ button.
Not sure if it helps or not, at service connections, if enter wrong token, it does not give me error.