Hi guys,
If you get below error in your sonar build, don't worry we have solution for that.
You just need to add below 2 properties to get it work
sonar.login=admin
sonar.password=your password
You can add this property 2 ways :
1) by setting it in build.xml with sonar target
2) By setting system property using -Dsonar.login=admin -Dsonar.password=password
Cheers!!!
If you get below error in your sonar build, don't worry we have solution for that.
org.sonar.api.utils.SonarException: Not authorized.
Analyzing this project requires to be authenticated.
Please provide the values of the properties sonar.login and sonar.password. at org.sonar.batch.bootstrap.ServerClient.handleHttpException(ServerClient.java:106) at org.sonar.batch.bootstrap.ServerClient.request(ServerClient.java:78) at org.sonar.batch.bootstrap.ServerClient.request(ServerClient.java:70) at org.sonar.batch.bootstrap.BatchSettings.downloadSettings(BatchSettings.java:94) at org.sonar.batch.bootstrap.BatchSettings.init(BatchSettings.java:71) at org.sonar.batch.bootstrap.BatchSettings.<init>(BatchSettings.java:54) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcc
You just need to add below 2 properties to get it work
sonar.login=admin
sonar.password=your password
You can add this property 2 ways :
1) by setting it in build.xml with sonar target
2) By setting system property using -Dsonar.login=admin -Dsonar.password=password
Cheers!!!