Commit b0fd4700 authored by Raphael Defosseux's avatar Raphael Defosseux

fix(ci): fixing HTML reporting on the case of Merge-Request Build

Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent 44a5b815
......@@ -274,7 +274,10 @@ class HtmlReport():
if os.path.isfile(cwd + '/archives/' + logFileName):
status = False
section_start_pattern = 'RUN git clone -b stable/2101 https://github.com/fdio/vpp.git'
section_end_pattern = 'RUN make install-dep -C vpp'
if self.git_pull_request:
section_end_pattern = 'RUN make build-release -C vpp'
else:
section_end_pattern = 'RUN make install-dep -C vpp'
section_status = False
with open(cwd + '/archives/' + logFileName, 'r') as logfile:
for line in logfile:
......@@ -322,7 +325,10 @@ class HtmlReport():
logFileName = 'upf_' + variant + '_image_build.log'
if os.path.isfile(cwd + '/archives/' + logFileName):
status = False
section_start_pattern = 'RUN make install-dep -C vpp'
if self.git_pull_request:
section_start_pattern = 'RUN make build-release -C vpp'
else:
section_start_pattern = 'RUN make install-dep -C vpp'
if variant == 'docker':
section_end_pattern = 'FROM ubuntu:bionic as oai-upf-vpp'
else:
......@@ -355,11 +361,12 @@ class HtmlReport():
else:
cell_msg = ' <td bgcolor="Tomato"><pre style="border:none; background-color:Tomato"><b>'
cell_msg += 'KO:\n'
cell_msg += ' -- make install-dep -C vpp\n'
if package_install:
cell_msg += ' ** Packages Installation: OK\n'
else:
cell_msg += ' ** Packages Installation: KO\n'
if not self.git_pull_request:
cell_msg += ' -- make install-dep -C vpp\n'
if package_install:
cell_msg += ' ** Packages Installation: OK\n'
else:
cell_msg += ' ** Packages Installation: KO\n'
cell_msg += ' -- make install-dep build-release -C vpp\n'
if dpdk_build_status:
cell_msg += ' ** dpdk Installation: OK\n'
......
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