From 4e78329a1825d04fb42a149bc6905865fa6bdc77 Mon Sep 17 00:00:00 2001 From: Bohdan Korablov Date: Tue, 6 Sep 2022 12:58:13 -0500 Subject: [PATCH] MCLOUD-9180: Fix Jenkins tests (#96) --- tests/functional/Codeception/TestInfrastructure.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/functional/Codeception/TestInfrastructure.php b/tests/functional/Codeception/TestInfrastructure.php index 70ad4e1e..3c5af89a 100644 --- a/tests/functional/Codeception/TestInfrastructure.php +++ b/tests/functional/Codeception/TestInfrastructure.php @@ -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( [