From: garciadeblas Date: Wed, 25 Jun 2025 16:55:57 +0000 (+0200) Subject: Fix log retrieving from Airflow DAGs to avoid wrong exit of stage3 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=22fbd36637b8965f1048951da0559435320a8603;p=osm%2Fdevops.git Fix log retrieving from Airflow DAGs to avoid wrong exit of stage3 Change-Id: I6428ce6b37a9af5db3d1df001a27a97f6d46a0e6 Signed-off-by: garciadeblas --- diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index f96b03b3..faf91372 100644 --- a/jenkins/ci-pipelines/ci_stage_3.groovy +++ b/jenkins/ci-pipelines/ci_stage_3.groovy @@ -170,7 +170,7 @@ void archive_logs(Map remote) { sshCommand remote: remote, command: ''' schedulerPod="$(kubectl get pods -n osm | grep airflow-scheduler| awk '{print $1; exit}')"; \ echo "Extracting logs from Airflow DAGs from pod ${schedulerPod}"; \ - kubectl cp -n osm ${schedulerPod}:/opt/airflow/logs/scheduler/latest/dags logs/dags -c scheduler + kubectl -n osm cp ${schedulerPod}:/opt/airflow/logs/scheduler/latest/dags logs/dags -c scheduler 2>&1 || true ''' }