If you get the above error when you setup Jenkins job, please follow the below steps.

There may be several reasons behind this error. One the reason may be if you don’t have git installed where you have jenkins server. To avoid this you can use the below given command.

yum install git

Another reason may be if you didn’t configure the path of git in jenkins. To set git path you can follow the below steps.

  • Go to manage jenkins
  • From there click on Global tool configuration
  • There you can find git path option.

Hope this will solve your problem.

Leave a Reply