CI: add warning log to HTML when service is restarted
This commit is contained in:
@@ -889,7 +889,10 @@ class Containerize():
|
|||||||
if deployed:
|
if deployed:
|
||||||
break
|
break
|
||||||
elif (attempt < num_attempts - 1):
|
elif (attempt < num_attempts - 1):
|
||||||
logging.warning(f'Failed to deploy on attempt {attempt}, restart services {services}')
|
warning_msg = f'Restart services {services}'
|
||||||
|
logging.warning(warning_msg)
|
||||||
|
imagesInfo.append(warning_msg)
|
||||||
|
HTML.CreateHtmlTestRowQueue('N/A', 'NOK', ['\n'.join(imagesInfo)])
|
||||||
for svc in services.split():
|
for svc in services.split():
|
||||||
CopyinServiceLog(ssh, lSourcePath, yaml_dir, svc, wd_yaml, f'{svc}-{HTML.testCase_id}-attempt{attempt}.log')
|
CopyinServiceLog(ssh, lSourcePath, yaml_dir, svc, wd_yaml, f'{svc}-{HTML.testCase_id}-attempt{attempt}.log')
|
||||||
ssh.run(f'docker compose -f {wd_yaml} down -- {services}')
|
ssh.run(f'docker compose -f {wd_yaml} down -- {services}')
|
||||||
|
|||||||
Reference in New Issue
Block a user