Creating a Jenkins pipeline using the pipeline syntax utility

Follow the given steps to create a new Jenkins pipeline job:

  1. From the Jenkins dashboard, click on the New Item link.
  2. On the resultant page, you will be presented with various types of Jenkins jobs to choose from.
  3. Choose Pipeline, and give a name to your pipeline using the Enter an item name field.
  4. Once you are done, click on the OK button at the bottom of the page.
  5. We will quickly navigate to the pipeline section by clicking on the Pipeline tab.

 

  1. Under the Pipeline tab, click on the link named Pipeline Syntax. This will open up a new tab, as shown in the following screenshot:
The Pipeline Syntax page
  1. We will be using the following Snippet Generator to create pipeline code ...

Get Learning Continuous Integration with Jenkins - Second Edition 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.