Difference between revisions of "Jenkins configuration"

Line 61: Line 61:
  
  
 +
 +
===Safe HTML===
  
  

Revision as of 13:46, 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

LDAP

You can restricted access by enforcing log-in.

  • Manage Jenkins > Configure Global Security
  • Enable LDAP
  • Use the following settings
Jenkins LDAP


Granted rights to LDAP users only

Once you've ensured your LDAP configuration is working, select the option matrix-based security

Jenkins matrix-based security


Safe HTML

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