Your most unhappy customers are your greatest source of learning.

How to upgrade Jenkins ?

1. Shutdown Jenkins .
2. Take backup of current Jenkins repository
3. Download jenkins.war file & put it in current webapps folder of apache tomcat.
4. Restart Jenkins
5. Start Sonar & Jenkins

Very easy and straight forward right ??????

How to upgrade sonar ?

1.    Take backup of current sonar filesystem & DB.
2.    Unzip sonar351 (Your current sonar version) in /opt/ folder.
3.    Shutdown Sonar.
4.     Update the content of the sonar.properties and wrapper.conf files located in the     {$NEW_SONAR_HOME}/conf directory according of the content of the related files in the {$OLD_SONAR_HOME}/conf directory
5.    Copy the directories extensions/plugins and extensions/rules from {$OLD_SONAR_HOME} to {$NEW_SONAR_HOME} (if you see problems while starting, try to remove the copied plugins from the extensions/plugins-directory and reinstall the plugins manually via the webinterface)
6.    Update sonar.properties with ldap settings
7.    Update sonar with http://url/setup
8.     Rename /opt/sonar351 to /opt/sonar
9.    Start Sonar

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