August 2017
Intermediate to advanced
332 pages
9h 16m
English
If we don't want to use the dynamic slave provisioning, then another solution for clustering Jenkins slaves is to use Jenkins Swarm. We described how to use it in Chapter 3, Configuring Jenkins. Here, we add the description for Docker Swarm.
First, let's have a look at how to run the Jenkins Swarm slave using the Docker image built from the swarm-client.jar tool. There are a few of them available on Docker Hub; we can use the csanchez/jenkins-swarm-slave image:
$ docker run csanchez/jenkins-swarm-slave:1.16 -master -username -password -name jenkins-swarm-slave-2
This command execution should have exactly the same effect as the on presented in Chapter 3, Configuring Jenkins; it dynamically adds a slave to the Jenkins master. ...
Read now
Unlock full access