In this chapter, we will use Jenkins, running in a Docker container, to trigger a build of an application, push it to Docker Hub, and then deploy it in our Docker Swarm cluster.
In this chapter, we will cover the following topics:
- Building a custom Jenkins image
- Deploying Jenkins in our Docker Swarm cluster
- Configuring Jenkins to interact with our Docker Swarm cluster and Docker Hub account
- Building and deploying a simple application using a three-stage pipeline