Update stage3 to get logs even if some containers did not init properly
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 3 Jun 2025 12:59:14 +0000 (14:59 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 1 Oct 2025 13:02:34 +0000 (15:02 +0200)
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 <gerardo.garciadeblas@telefonica.com>
jenkins/ci-pipelines/ci_stage_3.groovy

index 68903f4..f96b03b 100644 (file)
@@ -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: '''