We are already familiar with Jenkins Workflow, and it should be relatively easy to extend this knowledge to Docker Swarm deployments.
First things first. We need to provision our
cd node with Jenkins:
ansible-playbook /vagrant/ansible/jenkins-node-swarm.yml \ -i /vagrant/ansible/hosts/prod ansible-playbook /vagrant/ansible/jenkins.yml \ -c local
The two playbooks deployed the familiar Jenkins instance with two nodes. This time, the slaves we are running are
swarm-master. Among other jobs, the playbook created the
books-ms-swarm job based on the
Multibranch Workflow. The only difference between this and the other multibranch jobs we used earlier is in the
Include branches filter that, ...