Commit ef0f33b4 authored by Raphael Defosseux's avatar Raphael Defosseux

fix(ci): the .git folder is excluded by default in the build-config pod. Adding it back

Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent 3b2355ce
...@@ -132,7 +132,7 @@ class Cluster: ...@@ -132,7 +132,7 @@ class Cluster:
def _start_build(self, name): def _start_build(self, name):
# will return "immediately" but build runs in background # will return "immediately" but build runs in background
# if multiple builds are started at the same time, this can take some time, however # 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<jobname>[a-zA-Z0-9\-]+) started', ret.stdout) regres = re.search(r'build.build.openshift.io/(?P<jobname>[a-zA-Z0-9\-]+) started', ret.stdout)
if ret.returncode != 0 or ret.stdout.count('Uploading finished') != 1 or regres is None: 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}") logging.error(f"error during oc start-build: {ret.stdout}")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment