Building with Jenkins

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:

  1. Download Jenkins from http://mirrors.jenkins.io/war-stable/latest/jenkins.war
  2. Open up a Terminal in the download directory
  3. Run java -jar jenkins.war --httpPort=9090
  4. Browse to http://localhost:9090
  5. Follow the instructions to complete the installation
The preceding steps are copied from the Guided Tour of Jenkins, available at https://jenkins.io/doc/pipeline/tour/getting-started. The port is changed from 8080 to 9090.

The following screenshot shows how the Jenkins server looks after a fresh installation:

Figure 15.9: ...

Get Building Applications with Spring 5 and Vue.js 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.