• US Inquiries / 1 877 517 6540
  • Canadian Inquiries / 1 866 206 4644
submit to reddit

March 10, 2016 / KB-012

Distributed Builds with Jenkins

Check out these related webinars...

Continuous Integration with Maven and Jenkins
Distributed Builds with Jenkins
Apache Maven for Late Adopters

Distributed Builds with Jenkins

Distributed Builds - Overview

  • Jenkins can act as master/slave setup to distribute builds over multiple machines
  • Why?

    • Additional Capacity
    • Different build/runtime environments
    • Integration Test
    • Managing Machines

Distributed Builds – How?

  • Have another machine
  • Make sure all the required software is installed
  • Version control system
  • Java Development Kit
  • SSH
  • Configure the Jenkins Master
  • If necessary, configure projects

Slave Machines

  • For *nix, Master contacts slaves by SSH
  • Need user created on slave machine
  • Keys/credentials if necessary
  • For Windows, usually just install slave as a Windows Service
  • Needs to have local copies of anything that Jenkins needs

    • Git, SVN, Mercurial, etc
    • Maven
    • Java
    • Jenkins can install some of these automatically

Configure Jenkins Master

  • Create a Node
  • Configure Node for # executors, tool locations, etc

Configure Projects

  • If desired, you can restrict where a project runs
  • Each slave has one or more tags
  • Project can call out a tag
  • Project will only run on slaves where the tags match
  • No other config required


  • Distributed builds are readily supported in Jenkins

Related Webinars

Related Training

Jenkins Training
Continuous Integration with Jenkins
Jenkins Training
Continuous Integration with Maven, Jenkins and Artifactory
Instructor Led Virtual