Creating a pipeline with the pipeline editor

In the GitHub repo that we have chosen, there is no existing Jenkinsfile and so we are redirected to the pipeline editor screen, where we can create our first Jenkinsfile:

We need to add a Docker image for Node.js and for the agent, that looks similar to this:

Notice that we give an image and argument to mount a data volume using the -v option for Docker.

Next we click the gray plus button and we will see the following change:

Next we click the blue Add Step button after we give the stage a name. ...

Get Hands-On Continuous Integration and Delivery 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.