title: Jenkins/Github Error cloning remote repo 'origin' : Could not clone
body: <p>I need some help with an authentication issue I have encountered with Github/Jenkins.</p>
  
  <p>Setup is as follows:
  Jenkins master is on windows 
  Slave is running on OSX
  Jenkins can communicate fine with the slave</p>
  
  <p>When trying to pull from our private git repo we see the following error, this error is not on either the master or other linux slaves and clones fine in OSX terminal.</p>
  
  <pre><code>Started by user xxxxxxxxxxxx
  [EnvInject] - Loading node environment variables.
  Building remotely on MAC01 in workspace /var/jenkins/workspace/xxxxxxxxxxxx
  Checkout:NativeiOSSlots / /var/jenkins/workspace/xxxxxxxxxxxxx - hudson.remoting.Channel@166d8eb:MAC01
  Using strategy: Default
  Last Built Revision: Revision 7232678c31bf2c6f3c4bd5a66b349edf9288440c (origin/HEAD, origin/master)
  Cloning the remote Git repository
  Cloning repository &lt;repo url&gt;
  git --version
  git version 1.8.3.1
  ERROR: Error cloning remote repo 'origin' : Could not clone &lt;repo url&gt;
  hudson.plugins.git.GitException: Could not clone &lt;repo url&gt;
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:226)
      at org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.clone(AbstractGitAPIImpl.java:57)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.clone(CliGitAPIImpl.java:33)
      at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1012)
      at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:948)
      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2387)
      at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:326)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      at java.lang.Thread.run(Thread.java:680)
  Caused by: hudson.plugins.git.GitException: Command "/Applications/GitHub.app/Contents/Resources/git/bin/git clone --progress -o origin &lt;repo url&gt; /var/jenkins/workspace/xxxxxxxxxx" returned status code 128:
  stdout: Cloning into '/var/jenkins/workspace/xxxxxxxxxx'...
  
  stderr: remote: Repository not found.
  fatal: Authentication failed for '&lt;repo url&gt;'
  
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:790)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$100(CliGitAPIImpl.java:33)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:224)
      ... 14 more
  </code></pre>
  
  <p>Any Ideas?</p>