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...")
 
 
(4 intermediate revisions by the same user not shown)
Line 22: Line 22:
 
* Next build number plugin
 
* Next build number plugin
  
 +
 +
Source control
 +
* GitHub plugin    (this will install some dependencies as well)
  
 
Monitoring
 
Monitoring
Line 30: Line 33:
  
 
Code quality
 
Code quality
* Sonar plugin
+
* SonarQube plugin
* Static code analysis plug-ins
 
  
  
Line 40: Line 42:
  
  
Don't forget to restart Jenkins after installations !  
+
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
 +
 
 +
[[File:Jenkins LDAP configuration.png|none|Jenkins LDAP]]
  
  
==Security configuration==
+
'''Granted rights to LDAP users only'''
 +
 
 +
Once you've ensured your LDAP configuration is working, select the option '''matrix-based security'''
 +
 
 +
[[File:Jenkins matrix based security.png|none|Jenkins matrix-based security]]
 +
 
 +
 
 +
 
 +
===Safe HTML===
 +
 
  
 
You can use '''Safe HTML''' to make your job description a bit nicer. :-)
 
You can use '''Safe HTML''' to make your job description a bit nicer. :-)
Line 96: Line 119:
 
===Subversion===
 
===Subversion===
  
You can set version '''1.7''' if your repository supports it
+
You can set version '''1.8''' if your repository supports it
 
 
  
 
===Sonar===
 
===Sonar===

Latest revision as of 14:27, 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


Source control

  • GitHub plugin (this will install some dependencies as well)

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.8 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