Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
- Community Edition Version 8.6.1 (build 40680), Sonar Scanner for ant 2.7
Got Docker installation for Sonarqube server side.
- what are you trying to achieve
Trying to get the example project working SonarScanner for Ant | SonarQube Docs
- what have you tried so far to achieve this
Got the project listed here and tried ant sonar for sample project listed here.
ant sonar -Dsonar.login=authToken
Configured auth token in server.
Not authorized. Analyzing this project requires to be authenticated. Please provide the values of the properties sonar.login and sonar.password.
I edited build.xml and added
<property name="sonar.login" value="authToken"/>
ant sonar worked.
Am I doing something wrong when I try to add the -Dsonar.login via CLI?