Code Monkey home page Code Monkey logo

intro-to-jenkins's Introduction

Introduction to Jenkins

Firstly, download a Vagrant Box at http://files.vagrantup.com/precise32.box (or precise64.box)

Then add a box by running the command below

vagrant box add jenkins http://files.vagrantup.com/precise32.box

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

vagrant box add jenkins precise32.box

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 - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
  2. sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
  3. sudo apt-get update
  4. sudo apt-get install jenkins

For more inforamtion, read https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu.

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.

intro-to-jenkins's People

Contributors

zkan avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.