Skip to content

Commit

Permalink
MCLOUD-9180: Fix Jenkins tests (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
BaDos authored Sep 6, 2022
1 parent 50c77b0 commit 4e78329
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/functional/Codeception/TestInfrastructure.php
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,13 @@ public function addEceToolsGitRepoToComposer(): bool
*/
private function addGitRepoToComposer(string $name): bool
{
$repoUrl = $this->_getConfig($name . '_repo');

// Do not add repo if url is empty
if (empty($repoUrl)) {
return true;
}

return $this->taskComposerConfig()
->set('repositories.' . $name, json_encode(
[
Expand Down

0 comments on commit 4e78329

Please sign in to comment.