Your most unhappy customers are your greatest source of learning.

Please provide the values of the properties sonar.login and sonar.password Error in sonar

Hi guys,

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!!!

Beauty of Mask Password Plugin in Jenkins

Hi Friends,

If you know when we build any project through jenkins, it shows console where we can see deployment log.
So if you are passing any secure information in build information like user name and password and if  you want to secure that information which masked passwords and other information, There is one jenkins plugin available by using that you can mask any secure information.

You can get more detail about this plugin from https://wiki.jenkins-ci.org/display/JENKINS/Mask+Passwords+Plugin

You can configure it from manage jenkins >> configure system section for global settings. And for job wise settings you can enable mask password and can set any secure information by setting it in variable and that variable you can use anywhere in the job configuratipon property.

Looks interesting right ?????

Most Reading

 

Like Me & Share

Buy Websites PRchecker.info

Members

Ranks