Commit c365f347 authored by Raphael Defosseux's avatar Raphael Defosseux
Browse files

fix(ci): docker logs on non-present containers shall not fail


Signed-off-by: Raphael Defosseux's avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent 07b07e4c
......@@ -402,13 +402,13 @@ pipeline {
// Get logs if deployment fail
if (deployed != true) {
sh "mkdir -p archives/logs"
sh 'docker logs cicd-oai-nrf > archives/logs/oai_nrf.log'
sh 'docker logs cicd-oai-amf > archives/logs/oai_amf.log'
sh 'docker logs cicd-oai-smf > archives/logs/oai_smf.log'
sh 'docker logs cicd-oai-upf > archives/logs/oai_spgwu.log'
sh 'docker logs cicd-oai-ausf > archives/logs/oai_ausf.log'
sh 'docker logs cicd-oai-udm > archives/logs/oai_udm.log'
sh 'docker logs cicd-oai-udr > archives/logs/oai_udr.log'
sh 'docker logs cicd-oai-nrf > archives/logs/oai_nrf.log || true'
sh 'docker logs cicd-oai-amf > archives/logs/oai_amf.log || true'
sh 'docker logs cicd-oai-smf > archives/logs/oai_smf.log || true'
sh 'docker logs cicd-oai-upf > archives/logs/oai_spgwu.log || true'
sh 'docker logs cicd-oai-ausf > archives/logs/oai_ausf.log || true'
sh 'docker logs cicd-oai-udm > archives/logs/oai_udm.log || true'
sh 'docker logs cicd-oai-udr > archives/logs/oai_udr.log || true'
}
// Remove any leftover containers/networks
sh 'python3 ./ci-scripts/routeCheck.py --mode=Delete --userName=' + dsT_host_user + ' --hostName=' + dsT_host
......
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