From b82dd7b18d67684b981dd1b101c3f112f9883111 Mon Sep 17 00:00:00 2001 From: Michiel Meeuwissen Date: Sun, 17 Nov 2024 00:05:28 +0100 Subject: [PATCH] Debugging. --- scripts/helm-functions.sh | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/scripts/helm-functions.sh b/scripts/helm-functions.sh index 57056e0..5f902bb 100644 --- a/scripts/helm-functions.sh +++ b/scripts/helm-functions.sh @@ -96,9 +96,10 @@ function setup_oc_helm() { function deploy_application() { DIR=$1 - + echo "Deploy application in $DIR" OS_APPLICATION=$(os_app_name $DIR) - exit_code=$? + exit_code=$? + echo "Deploy application in $DIR -> $OS_APPLICATION}" if [[ $exit_code != '0' ]] ; then echo "Error with os_app_name function $exit_code" exit $exit_code @@ -213,11 +214,14 @@ function deploy_applications() { echo "Deploy the root directory only" get_artifact_versions . $PROJECT_VERSION deploy_application . + else + pwd + ls + for app_dir in $(echo $DEPLOY_APPLICATIONS | sed "s/,/ /g") + do + echo deploy application in $app_dir + get_artifact_versions $app_dir $PROJECT_VERSION + deploy_application $app_dir + done fi - for app_dir in $(echo $DEPLOY_APPLICATIONS | sed "s/,/ /g") - do - echo deploy application in $app_dir - get_artifact_versions $app_dir $PROJECT_VERSION - deploy_application $app_dir - done } \ No newline at end of file