Follow the given steps to create a new Jenkins pipeline job:
- From the Jenkins dashboard, click on the New Item link.
- On the resultant page, you will be presented with various types of Jenkins jobs to choose from.
- Choose Pipeline, and give a name to your pipeline using the Enter an item name field.
- Once you are done, click on the OK button at the bottom of the page.
- We will quickly navigate to the pipeline section by clicking on the Pipeline tab.
- Under the Pipeline tab, click on the link named Pipeline Syntax. This will open up a new tab, as shown in the following screenshot:
- We will be using the following Snippet Generator to create pipeline code ...