Creating a new GitHub repository

We are now going to create a new repository dedicated to hosting our Hello World node application. We will create the repository using the same steps as in Chapter 3, Treating Your Infrastructure As Code:

  1. Open https://github.com/new in your browser.
  2. Call your repository helloworld.
  3. Check the checkbox Initialize this repository with a README.
  4. Click on Create Repository.

This will create the repository, a master branch, and a README.md file.

A proper CI pipeline works silently in the background. In order to achieve that, when the code is hosted on GitHub, Jenkins needs to get notifications from GitHub that the code has changed so that it can trigger a build automatically. This is something we can implement easily thanks to a plugin called github-organization-plugin. The plugin is part of the plugins that got installed when we selected to install the suggested plugins in Jenkins. In order to use it, we first need to create a personal access token in GitHub.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset