title: Jenkins "git command not found"
body: <p>I have a project where build script using some git operations but my job fzailing due to it.</p>
  
  <p>I have added git executable in slave's tools locations(<code>using following combinations</code>) but it's still failing</p>
  
  <pre><code>  C:\Program Files (x86)\Git\bin
    'C:\Program Files (x86)\Git\bin\'
    C:\Program Files (x86)\Git\bin\git.exe
    "C:\Program Files (x86)\Git\bin\git.exe"
    'C:\Program Files (x86)\Git\bin\git.exe'
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/m35kL.png" rel="noreferrer"><img src="https://i.stack.imgur.com/m35kL.png" alt="enter image description here"></a></p>
  
  <pre><code>java --version
  git --version 
  </code></pre>
  
  <p><strong>Java worked but git failing with Error :-</strong> </p>
  
  <pre><code>"JAVA VERSION &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;"
  java version "1.6.0_18"
  Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
  Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)
  
  "GIT VERSION &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;"
  'git' is not recognized as an internal or external command,
  operable program or batch file.
  </code></pre>