Add support for Bitbucket's Mercurial based repos
This commit is contained in:
parent
ea8c5393bc
commit
7084b49da7
9 changed files with 126 additions and 22 deletions
|
|
@ -25,9 +25,9 @@ class MercurialBuild extends Build
|
|||
*/
|
||||
public function createWorkingCopy(Builder $builder, $buildPath)
|
||||
{
|
||||
$key = trim($this->getProject()->getSshPublicKey());
|
||||
$key = trim($this->getProject()->getSshPrivateKey());
|
||||
|
||||
if (!empty($key) && strpos($this->getProject()->getReference(), 'ssh') > -1) {
|
||||
if (!empty($key)) {
|
||||
$success = $this->cloneBySsh($builder, $buildPath);
|
||||
} else {
|
||||
$success = $this->cloneByHttp($builder, $buildPath);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue