From ef0f33b4a1abb8f79ff210108e0c429121512aa8 Mon Sep 17 00:00:00 2001 From: Raphael Defosseux Date: Mon, 5 Feb 2024 14:53:01 +0100 Subject: [PATCH] fix(ci): the .git folder is excluded by default in the build-config pod. Adding it back Signed-off-by: Raphael Defosseux --- ci-scripts/cls_cluster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci-scripts/cls_cluster.py b/ci-scripts/cls_cluster.py index d8b1835ca8..0491c09f73 100644 --- a/ci-scripts/cls_cluster.py +++ b/ci-scripts/cls_cluster.py @@ -132,7 +132,7 @@ class Cluster: def _start_build(self, name): # will return "immediately" but build runs in background # if multiple builds are started at the same time, this can take some time, however - ret = self.cmd.run(f'oc start-build {name} --from-file={self.eNBSourceCodePath}') + ret = self.cmd.run(f'oc start-build {name} --from-dir={self.eNBSourceCodePath} --exclude=""') regres = re.search(r'build.build.openshift.io/(?P[a-zA-Z0-9\-]+) started', ret.stdout) if ret.returncode != 0 or ret.stdout.count('Uploading finished') != 1 or regres is None: logging.error(f"error during oc start-build: {ret.stdout}")