Git is one of the most popular tools for version control. You can pull code from Git repositories using Jenkins if you use the Git/GitHub plugin.
Follow this artical in YouTubearrow-up-right
Prerequisites
Jenkins server Get Help Herearrow-up-right
Install git packages on Jenkins server:
yum install git -y
Install Git plugin without restart:
Manage Jenkins > Jenkins Plugins > available > github
Manage Jenkins
Jenkins Plugins
available
github
Configure Git path:
Manage Jenkins > Global Tool Configuration > git
Global Tool Configuration
git
Configure Users & Groups in Jenkinsarrow-up-right
Secure your Jenkins Serverarrow-up-right
Jenkins Plugin Installationarrow-up-right
Jenkins Master-Slave Configurationarrow-up-right