Skip to content
Introduction to Jenkins
Branch: master
Clone or download
Pull request Compare This branch is even with zkan:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Introduction to Jenkins

Firstly, download a Vagrant Box at (or

Then add a box by running the command below

vagrant box add jenkins

or if you have already downloaded the box to your local machine, run

vagrant box add jenkins

Finally, run vagrant up to start the virtual machine.

Installing Jenkins on Ubuntu

Note: All of these steps will be done during vagrant up.

Run the following commands:

  1. wget -q -O - | sudo apt-key add -
  2. sudo sh -c 'echo deb binary/ > /etc/apt/sources.list.d/jenkins.list'
  3. sudo apt-get update
  4. sudo apt-get install jenkins

For more inforamtion, read

Setting Up Jenkins with Github

  1. Install Git Plugin to integrate with Git SCM.
  2. Install GitHub Plugin to integrate with GitHub.
  3. Install Build Pipeline Plugin.
  4. Install Green Balls to use green balls instead of blue for successful builds.

Setting Up a Build Pipeline

  1. Create a free-style project.
  2. Use Git as SCM and point to https (since it doesn’t require a ssh key.)
  3. Use Poll SCM (* * * * * for polling every minute).
  4. Use the same workspace (custom workspace /var/www/fizzbuzz)
  5. Create a unit test project.
  6. Set the build trigger to "build after other projects are built."
  7. Use the same workspace (custom workspace /var/www/fizzbuzz).
  8. Create another project to do whatever you want and add it to the pipeline.
  9. Generate a report in the unit test project.
  10. Run vagrant ssh to SSH to the Jenkins server.
  11. Run sudo apt-get install python-setuptools.
  12. Run sudo easy_install pip.
  13. Run sudo pip install xmlrunner.
  14. Configure the "another unit test" project to read the report.
  15. Add a post-build action - Publish jUnit test result report.
You can’t perform that action at this time.