title: Git clone on jenkins master, copy to slave
body: <p>I've set up a CI server running jenkins and a slave with a replica of our production environment. I'm running into a pesky little problem though: Jenkins apparently runs <code>git clone</code> on the slave which would mean that every slave should have it's publickey added to GitHub. </p>
  
  <p>To me this sounds like a pretty weird architecture design. <strong>I would prefer the master server (which has all my credentials) to <code>clone</code>/<code>checkout</code> and copy the workspace to the slave.</strong> But after quite some Googling I haven't found a way to do this yet. I have found the <a href="https://wiki.jenkins-ci.org/display/JENKINS/Copy+To+Slave+Plugin" rel="noreferrer">Copy to slave plugin</a> but that doesn't prevent the slave from failing on a <code>git clone</code>.</p>
  
  <p>I hope someone know a way to achieve this because setting up GitHub publickeys for every slave sounds ridiculous.</p>