Jenkins git not installed

How To Install Git In Jenkins

If you want to how to  install Git in Jenkins, It can be possible either by GUI or command line. I will show you through GUI mode.

Why do you need git installed !

As if you’re going to create a job in Jenkins and want to pull the code from git-hub or git-lab. So you need to be sure there’s git plugins installed in Jenkins otherwise you won’t be able to create a job or pull code from there.

Check Out : Jenkins HTTP 404

Via Command line is yum install git -y

Let’s Begin

Login to the Jenkins server and click on “Manage Jenkins” & look for “Global Tool Configuration

 

Click on Global Tool Configuration

Check Out : Install Maven in Jenkins

As you can see Git not installed by default in Jenkins you have to install it. Just click on Install automatically and apply.

After installing git you have to restart the Jenkins server otherwise it won’t work.

systemctl restart jenkins

Now Check git has been installed or not by creating a job in Jenkins. Get a free project from git-hub to test it.

As you can see Git has been installed if get any error after putting the Git repository URL that means Git has not been installed yet you need to check it.

YouTube Link :

That’s it.

Leave a Reply

avatar
  Subscribe  
Notify of