Jenkins comes with a pretty basic setup, so you will need to install the required plugins to enable respective third-party application support.
GitHub is a web-based repository of code which plays a major role in DevOps. It provides a common platform for multiple developers working on the same code/project to upload and retrieve updated code, thereby facilitating continuous integration.
Jenkins needs to have GitHub plugin installed to be able to pull code from the GitHub repository.
You need not install a GitHub plugin if you have already installed the Git plugin in response to the prompt during the Jenkins’ installation setup. But if not, here is how you install GitHub plugins in Jenkins and pull code from a GitHub repository.
Step 1: Open your dashboard
Click on the Manage Jenkins button on your Jenkins dashboard:
Step 2: Find plugins option.
Click on Manage Plugins:
Step 3: In the Plugins Page,
Select the GIT Plugin
Click on Install without restart. The plugin will take a few moments to finish downloading depending on your internet connection, and will be installed automatically.
You can also select the option Download now and Install after restart button. In which plugin is installed after restart
You will be shown a “No updates available” message if you already have the Git plugin installed.
Step 4: Once the plugins have been installed,
Go to Manage Jenkins on your Jenkins dashboard. You will see your plugins listed among the rest.