title: Jenkins and Git configuration issue
body: <p>I have been using Git for sometime now. </p>
  
  <p>Recently, I have started exploring Jenkins and I managed to set it up using the native windows installer. I created a sample project on my local system and built it using Jenkins successfully.</p>
  
  <p>Now, I have a project on remote Server and I want Jenkins to pull this code using Git.</p>
  
  <p>I did the following:</p>
  
  <p><strong>1) Installed the Git Plugin.</strong>
  <img src="https://i.stack.imgur.com/euJsW.png" alt="enter image description here"></p>
  
  <p><strong>2) In Jenkins > Manage Jenkins > Configure System > Git > Git installations -</strong></p>
  
  <p><img src="https://i.stack.imgur.com/h5FYV.png" alt="enter image description here"></p>
  
  <p>[also tried C:\Program Files (x86)\Git\cmd\gitk.cmd instead of ....\git.exe]</p>
  
  <p>3) Under the Test project > Configure
  <img src="https://i.stack.imgur.com/Kqgox.png" alt="enter image description here"></p>
  
  <p>4) Finally, tried to build it. But always get timeout error and then failure.
  <img src="https://i.stack.imgur.com/zUR53.png" alt="enter image description here"></p>
  
  <pre><code>Started by user anonymous
  Building in workspace C:\Program Files (x86)\Jenkins\workspace\GitTest
   &gt; C:\Program Files (x86)\Git\cmd\git.exe rev-parse --is-inside-work-tree # timeout=10
  Fetching changes from the remote Git repository
   &gt; C:\Program Files (x86)\Git\cmd\git.exe config remote.origin.url ssh://git@&lt;the-url-to-the-server&gt;demo_android.git # timeout=10
  Fetching upstream changes from ssh://git@&lt;the-url-to-the-server&gt;demo_android.git
   &gt; C:\Program Files (x86)\Git\cmd\git.exe --version # timeout=10
   &gt; C:\Program Files (x86)\Git\cmd\git.exe fetch --tags --progress ssh://git@&lt;the-url-to-the-server&gt;demo_android.git +refs/heads/*:refs/remotes/origin/* # timeout=60
  FATAL: Failed to fetch from ssh://git@&lt;the-url-to-the-server&gt;demo_android.git
  hudson.plugins.git.GitException: Failed to fetch from ssh://git@&lt;the-url-to-the-server&gt;demo_android.git
      at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:647)
      at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:889)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:914)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1258)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528)
      at hudson.model.Run.execute(Run.java:1759)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:89)
      at hudson.model.Executor.run(Executor.java:240)
  Caused by: hudson.plugins.git.GitException: Command "C:\Program Files (x86)\Git\cmd\git.exe fetch --tags --progress ssh://git@&lt;the-url-to-the-server&gt;demo_android.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
  stdout: 
  stderr: ssh: connect to host git.us1.adeptra.com port 7999: Bad file number
  fatal: Could not read from remote repository.
  
  Please make sure you have the correct access rights
  and the repository exists.
  
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1435)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1223)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:85)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:280)
      at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:645)
      ... 10 more
  </code></pre>
  
  <p>What am I doing wrong? Do i need to provide credentials? (I tried that it failed too)</p>