Difference between revisions of "Jenkins configuration"
(→Subversion) |
|||
Line 116: | Line 116: | ||
===Subversion=== | ===Subversion=== | ||
− | You can set version '''1. | + | You can set version '''1.8''' if your repository supports it |
− | |||
===Sonar=== | ===Sonar=== |
Revision as of 14:06, 13 September 2015
Contents
Configuration
To access Jenkins configuration click on "Manage Jenkins" from the homepage
Plugins
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
Granted rights to LDAP users only
Once you've ensured your LDAP configuration is working, select the option matrix-based security
Safe HTML
You can use Safe HTML to make your job description a bit nicer. :-)
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)
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
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: