Renaming project.git_key and project.public_key to project.ssh_private_key and project.ssh_public_key respectively.

This commit is contained in:
Dan Cryer 2014-05-13 15:15:33 +00:00
commit d639f4a324
6 changed files with 37 additions and 11 deletions

View file

@ -41,7 +41,7 @@ class BitbucketBuild extends RemoteGitBuild
*/
protected function getCloneUrl()
{
$key = trim($this->getProject()->getGitKey());
$key = trim($this->getProject()->getSshPrivateKey());
if (!empty($key)) {
return 'git@bitbucket.org:' . $this->getProject()->getReference() . '.git';

View file

@ -86,7 +86,7 @@ class GithubBuild extends RemoteGitBuild
*/
protected function getCloneUrl()
{
$key = trim($this->getProject()->getGitKey());
$key = trim($this->getProject()->getSshPrivateKey());
if (!empty($key)) {
return 'git@github.com:' . $this->getProject()->getReference() . '.git';

View file

@ -56,7 +56,7 @@ class GitlabBuild extends RemoteGitBuild
*/
protected function getCloneUrl()
{
$key = trim($this->getProject()->getGitKey());
$key = trim($this->getProject()->getSshPrivateKey());
if (!empty($key)) {
$user = $this->getProject()->getAccessInformation("user");

View file

@ -33,7 +33,7 @@ class RemoteGitBuild extends Build
*/
public function createWorkingCopy(Builder $builder, $buildPath)
{
$key = trim($this->getProject()->getGitKey());
$key = trim($this->getProject()->getSshPrivateKey());
if (!empty($key)) {
$success = $this->cloneBySsh($builder, $buildPath);
@ -140,7 +140,7 @@ class RemoteGitBuild extends Build
$keyFile = $keyPath . '.key';
// Write the contents of this project's git key to the file:
file_put_contents($keyFile, $this->getProject()->getGitKey());
file_put_contents($keyFile, $this->getProject()->getSshPrivateKey());
chmod($keyFile, 0600);
// Return the filename: