From 4fa3c2b5b14c39f4419c2e899c8b962884c58363 Mon Sep 17 00:00:00 2001 From: Luca Romoli <luca.romoli@seco.com> Date: Tue, 24 Sep 2024 10:15:17 +0200 Subject: [PATCH] Add some echoes for debug purposes --- scripts/notify_message.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/notify_message.sh b/scripts/notify_message.sh index cb0c995..01705d3 100644 --- a/scripts/notify_message.sh +++ b/scripts/notify_message.sh @@ -44,9 +44,15 @@ link_report="$(echo $link_report | sed -E 's/\s.*$//')" jq --arg link_var $link_report '.potentialAction[1].targets[0].uri = $link_var' notification_1.json >notification_2.json changelog_report="$(az storage blob url --container-name $AZURE_CONTAINER_NAME --name ${AZURE_PATH}/Changelog_edgehog_${TAG_NAME}.md)" +######################################ECHO N1############################################## +echo "$changelog_report" changelog_report="$(echo $changelog_report | sed -E 's/\s.*$//')" +######################################ECHO N2############################################## +echo "$changelog_report" jq --arg changelog_var $changelog_report '.potentialAction[2].targets[0].uri = $changelog_var' notification_2.json >notification_3.json sed -i -E 's/\\"//g' notification_3.json +######################################ECHO N3############################################## +echo "$changelog_report" jq --arg text "$(cat Job_message_edgehog_${TAG_NAME}.txt)" '.text = $text' notification_3.json >notification_4.json sed -i -E 's/\\n/ \\n\\n /g' notification_4.json @@ -57,3 +63,5 @@ cp Link_report_edgehog_${TAG_NAME}.txt Link_report.txt sed -i 's/\"//g' Link_report.txt echo "${changelog_report#?}" | cut -f1 -d"?" >changelog_link.txt +######################################ECHO N4############################################## +echo "$changelog_report" -- GitLab