Building the Image

Building, Testing and Pushing BookNest's Docker Image

The pieces are now in place: a multibranch job (Jenkinsfiles in Source Control), a shared library (Shared Libraries) and an agent that can drive Docker 514 (Build Agents). This section turns BookNest's Jenkinsfile into a real delivery pipeline. Every branch is checked out, tested against PostgreSQL 1,289 and built into an image with Docker's Dockerfile; main also pushes the image to a registry. Build 5 of main ran all of it in 55 seconds:

The stages of main's build 5 in the Pipeline Graph View
The stages of main's build 5 in the Pipeline Graph View 163

Subsections