From 5b96aa8ee4a11f3eb58052422b8174f0d0eee703 Mon Sep 17 00:00:00 2001 From: Robert Schmidt <robert.schmidt@openairinterface.org> Date: Mon, 10 Oct 2022 14:34:21 +0200 Subject: [PATCH] Fix error --- ci-scripts/cls_containerize.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ci-scripts/cls_containerize.py b/ci-scripts/cls_containerize.py index 15c1d30be8..dfbe6ac4e4 100644 --- a/ci-scripts/cls_containerize.py +++ b/ci-scripts/cls_containerize.py @@ -60,9 +60,10 @@ def CreateWorkspace(sshSession, sourcePath, ranRepository, ranCommitID, ranTarge sshSession.command(f'rm -rf {sourcePath}', '\$', 10) sshSession.command('mkdir -p ' + sourcePath, '\$', 5) sshSession.command('cd ' + sourcePath, '\$', 5) - sshSession.command(f'git clone --filter=blob:none -n -b develop {full_ran_repo_name} .', '\$', 60) - if sshSession.getBefore().count('done.') == 0: - logging.warning('did not find \'done.\' in git output while cloning/fetching, was not successful?') + # Recent version of git (>2.20?) should handle missing .git extension # without problems + sshSession.command(f'git clone --filter=blob:none -n -b develop {ranRepository} .', '\$', 60) + if sshSession.getBefore().count('error') > 0 or sshSession.getBefore().count('error') > 0: + sys.exit('error during clone') sshSession.command('git config user.email "jenkins@openairinterface.org"', '\$', 5) sshSession.command('git config user.name "OAI Jenkins"', '\$', 5) -- GitLab