I have a self-hosted Windows agent with SonarQube Server installed.
It works when I add 'Prepare analysis on SonarQube' to a pipeline.
When I add the command 'Run Code Analysis' to the same pipeline, it fails with the following error:
ERROR: You are not authorised.
Please check the sonar.login and sonar.password properties.
Sonar.projectKey and sonar.login= are both defined in my sonar-project.properties file.
I've also tried providing the sonar.login and sonar.password, but it still doesn't work.