GitHub Setup for Jenkins
Jenkins is a CI (Continuous Integration) server and this means that it needs to check out source code from a source code repository and build code. Jenkins has outstanding support for various source code management systems like Subversion, CVS etc.
Github is the fast becoming one of the most popular source code management systems. It is a web based repository of code which plays a major role in DevOps. GitHub provides a common platform for many developers working on the same code or project to upload and retrieve updated code, thereby facilitating continuous integration. Jenkins works with Git through the Git plugin.
Connecting a GitHub private repository to a private instance of Jenkins can be tricky.
To do the GitHub setup, make sure that internet connectivity is present in the machine where Jenkins is installed.
Integrating Jenkins with GitHub
Let's see the process of integrating GitHub into Jenkins in a windows system.
Note: if the Git option does not appear, try to reinstall the plugins, followed by a restart into your Jenkins dashboard.
This happens if you don't have Git installed in your system. To install the Git in your system, download the appropriate Git setup according to your operating system. I am installing for windows. Once the download is completed, install the Git.
Complete the following instructions to install the Git:
You can execute Git repositories in your Jenkins once Git has been installed on your system. To check if the Git has been installed on your system, open the command prompt, type Git and press Enter.
In the above screen, you observe that syntax and different options come up for Git. This means that Git has been installed in your machine.