Skip to content
Snippets Groups Projects
Commit 4fa3c2b5 authored by Luca Romoli's avatar Luca Romoli
Browse files

Add some echoes for debug purposes

parent 400ff327
No related branches found
No related tags found
No related merge requests found
...@@ -44,9 +44,15 @@ link_report="$(echo $link_report | sed -E 's/\s.*$//')" ...@@ -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 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)" 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.*$//')" 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 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 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 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 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 ...@@ -57,3 +63,5 @@ cp Link_report_edgehog_${TAG_NAME}.txt Link_report.txt
sed -i 's/\"//g' Link_report.txt sed -i 's/\"//g' Link_report.txt
echo "${changelog_report#?}" | cut -f1 -d"?" >changelog_link.txt echo "${changelog_report#?}" | cut -f1 -d"?" >changelog_link.txt
######################################ECHO N4##############################################
echo "$changelog_report"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment