The Jenkins pipeline
We will create our first pipeline by using the Jenkins 2.0 UI and will also create a Jenkinsfile with the pipeline editor that is built in to the new Jenkins 2.0 UI.
Creating a Jenkins pipeline
The first step we will do is click the Create a new Pipeline
button. You will be redirected to the following screen:

For the purposes of this chapter, we will use an existing GitHub repository that I created, but you can easily use Bitbucket and your own code that is hosted on either GitHub or Bitbucket. In order for this to work, you will need to make sure that you have an account on GitHub, and if you do not, make sure to sign up for GitHub (https://github.com/).
Providing a personal access token for GitHub
You will need to create a personal access token if you don't have one already in GitHub. Notice in the following screenshot that there is a link called Create an access key here
:

Once you click the Create an access key her
e
link, you will be redirected to the following GitHub...