Now that we have Dockerfile and Jenkinsfile ready, let's build the application with Jenkins.
In case you do not have a Jenkins server up and running, you can use the following steps to spin up one easily:
- Download Jenkins from http://mirrors.jenkins.io/war-stable/latest/jenkins.war
- Open up a Terminal in the download directory
- Run java -jar jenkins.war --httpPort=9090
- Browse to http://localhost:9090
- Follow the instructions to complete the installation
The following screenshot shows how the Jenkins server looks after a fresh installation: