From: garciadeblas Date: Tue, 3 Jun 2025 12:59:14 +0000 (+0200) Subject: Update stage3 to get logs even if some containers did not init properly X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=c9cedb77600877b7aafbcbcc3affef25496eec92;p=osm%2Fdevops.git Update stage3 to get logs even if some containers did not init properly This commit adds a workaround to get airflow-scheduler log, while Airflow helm chart is not dealing properly with the value `fullnameOverride`, which is required now that Airflow is a subchart of OSM Helm chart. Change-Id: I1db25801a118adc7cd8357ce61039e7761b44ed3 Signed-off-by: garciadeblas --- diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index 68903f4d..f96b03b3 100644 --- a/jenkins/ci-pipelines/ci_stage_3.groovy +++ b/jenkins/ci-pipelines/ci_stage_3.groovy @@ -157,14 +157,14 @@ void archive_logs(Map remote) { for deployment in `kubectl -n osm get deployments | grep -v operator | grep -v NAME| awk '{print $1}'`; do echo "Extracting log for $deployment" kubectl -n osm logs deployments/$deployment --timestamps=true --all-containers 2>&1 \ - > logs/$deployment.log + > logs/$deployment.log || true done ''' sshCommand remote: remote, command: ''' for statefulset in `kubectl -n osm get statefulsets | grep -v operator | grep -v NAME| awk '{print $1}'`; do echo "Extracting log for $statefulset" kubectl -n osm logs statefulsets/$statefulset --timestamps=true --all-containers 2>&1 \ - > logs/$statefulset.log + > logs/$statefulset.log || true done ''' sshCommand remote: remote, command: '''