Difference between revisions of "Jenkins configuration"

(Created page with "Category:Development Category:Linux =Configuration= To access Jenkins configuration click on "Manage Jenkins" from the homepage File:Jenkins manage.png|350px|no...")
 
(Plugins)
Line 30: Line 30:
  
 
Code quality
 
Code quality
* Sonar plugin
+
* SonarQube plugin
* Static code analysis plug-ins
 
  
  
Line 40: Line 39:
  
  
Don't forget to restart Jenkins after installations !  
+
Don't forget to restart Jenkins after installations !
 
 
  
 
==Security configuration==
 
==Security configuration==

Revision as of 14:04, 13 September 2015


Configuration

To access Jenkins configuration click on "Manage Jenkins" from the homepage


Manage jenkins


Plugins

Manage jenkins


First of all, update all the default plugins and then install new ones. Recommended list of plugins:


Mandatory

  • Next build number plugin


Monitoring

  • Build monitor plugin
  • Disk usage plugin
  • Status monitor plugin


Code quality

  • SonarQube plugin


Build control

  • Naginator plugin >> to reschedule a failed build
  • Build-timeout plugin


Don't forget to restart Jenkins after installations !

Security configuration

You can use Safe HTML to make your job description a bit nicer. :-)


Manage jenkins


System configuration

Go to "Configure System"



Main settings

  • # of executors: 2
  • Quiet period: 60


JDK

  • ORACLE JDK 7  ; /usr/lib/jvm/java-7-oracle
  • ORACLE JDK 8  ; /usr/lib/jvm/java-8-oracle


MAVEN

  • Point to your own installation (not the bundled one)


Jenkins Maven settings


URL

  • URL must match the service configuration !!
 Like: http://vc076:8080/jenkins-guillaume


Disk usage

Let the default option, just tick both checkboxes:

  • Show disk usage trend graph on the project page
  • Show free space of jobs directory in global graph
Jenkins disk usage


Subversion

You can set version 1.7 if your repository supports it


Sonar

  • Server URL: http://localhost:9000
  • Sonar account login: jenkins
  • Sonar account password: jenkins
  • Database URL: jdbc:mysql://localhost:3306/sonar?autoReconnect=true&useUnicode=true&characterEncoding=utf8
  • Database login: sonar
  • Database password: sonar
  • Database driver: com.mysql.jdbc.driver
  • Additional properties: -Dsonar.login=jenkins -Dsonar.password=jenkins


Installation screenshot:

Jenkins SONAR config