1 of 9

Continuous Integration

with Jenkins

Jinwoo Min

Oct-Nov 2011

2 of 9

Hands-on Labs

3 of 9

Prerequisites

  • Java SDK
    • sudo apt-get install openjdk-6-jdk
  • Ant
    • sudo apt-get install ant

4 of 9

Install Jenkins

$ wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -

$ sudo echo 'deb http://pkg.jenkins-ci.org/debian binary/' >> /etc/apt/sources.list

$ sudo apt-get update

$ sudo apt-get install jenkins

$ sudo service jenkins start

5 of 9

Do CI with HelloWorld Project

  1. Import HelloWorld project to SVN repository
  2. Create a project from Jenkins
    1. Set SVN with polling
  3. Trigger build
  4. Make changes and commit to SVN again.
  5. See CI works automatically.

6 of 9

Do CI + Ant

  1. Set up Ant from Jenkins admin page
  2. Commit build.xml to SVN
  3. Open the project setup from Jenkins
  4. Set Ant
  5. Trigger build
  6. See console Ant works

7 of 9

Do CI + Ant + JUnit

  • Set up junit plugin if needed from Jenkins admin page
  • Add tests to the project
  • Add <junitreport> to build.xml and commit to SVN
  • Open the project setup from Jenkins
  • Set JUnit report
  • Trigger build
  • See test results from build result screen

8 of 9

Use Notifications

  • Email
  • Instant messengers
  • SNSs
  • ...

9 of 9

Thank you!!

You really did great job!!