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 Multibranch 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.
- Scroll to the section Branch Sources. This is the place where we configure the GitHub repository that we want to use.
- Click on the Add Source button and choose GitHub. You will be presented with a list of fields to configure. Let us see them one by one (see the following screenshot):
- For the Credentials field, choose ...