Git Plugin ignores agent local tool definition

Article ID:360030059171
1 minute readKnowledge base


There was a regression in Git Plugin version 3.9.2 where Git tool locations configured for an agent are no longer being honored.

For example you may have /usr/bin/git configured in your Global Tool Configuration, but you have changed the Tool Locations for your Windows agent. You see an error similar to the following where it is attempting to use the Global Tool Configuration rather than the Tool Locations configured for the agent:

Caused by: Cannot run program "/usr/bin/git" (in directory "E:\workspace\Pipeline"): CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at hudson.Proc$LocalProc.<init>(
at hudson.Proc$LocalProc.<init>(
at hudson.Launcher$LocalLauncher.launch(
at hudson.Launcher$ProcStarter.start(
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(


  • Upgrade the Git Plugin to 3.9.3 or greater.