What is Jenkins?

"Jenkins provides continuous integration services for software development, primarily in the Java programming language. It is a server-based system running in a servlet container such as Apache Tomcat. It supports SCM tools including CVS, Subversion, Git, Mercurial and Clearcase, and can execute Apache Ant and Apache Maven based projects as well as arbitrary shell scripts and Windows batch commands. The primary developer of Jenkins is Kohsuke Kawaguchi. Released under the MIT License, Jenkins is free software." - from Wikipedia

In plain English, Jenkins allows you to automate the testing of software. Software tests can be written in basically anything and then executed through shell scripts. The tests can be triggered manually, on a schedule, or when new code is committed to the repository. Jenkins supports CVS, SVN, Git, Mercurial, and Clearcase either natively or through plugin support.

Links

Installation

  • Download the latest version
  • Run it with java -jar jenkins.war
  • Access Jenkins Dashboard through localhost:8080
  • Open up the Jenkins Dashboard in a browser.
  • From home page: Manage Jenkins -> Manage Plugins -> Available Plugins
  • Install "Github Plugin"

Configuration with GitHub

  • Go to Jenkins global configuration page: Manage Jenkins -> Configure System
  • Configure the GitHub Web Hook either manually per repo or automatic per job (see this link for more details)
  • Once configured correctly, github will send a HTTP POST message to Jenkins whenever a commits are pushed to the repo

Test Job

  • Create a new Job with the title "Test" and select the "Build a free-style software project" option.
  • Under "Source Code Management" select "Git" and enter the URL of the github repository
  • Under "Build Triggers" check off "Build when a change is pushed to GitHub"
  • Under "Build" add an "Execute Shell" Build Step (or whatever is appropriate)

-- AndreyPolyakov - 2011-10-19

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | More topic actions...
Topic revision: r1 - 2011-10-19 - andpol
 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback