Fixed GitHub Remote SSH build authentication errors

This commit is contained in:
Steve Kamerman 2013-05-16 14:20:40 -04:00
parent 6ad3c0894e
commit abcc5f13d8

View file

@ -76,7 +76,7 @@ abstract class RemoteGitBuild extends Build
chmod($keyFile, 0600);
// Use the key file to do an SSH clone:
$cmd = 'ssh-agent ssh-add "%s" && git clone -b %s %s "%s" && ssh-agent -k';
$cmd = 'eval `ssh-agent -s` && ssh-add "%s" && git clone -b %s %s "%s" && ssh-agent -k';
$success = $builder->executeCommand($cmd, $keyFile, $this->getBranch(), $this->getCloneUrl(), $to);
// Remove the key file: