From 289678b67c3eaed17fcffb3d7911d0da3d126d2e Mon Sep 17 00:00:00 2001 From: Lorenzo Pagliai <lorenzo.pagliai@seco.com> Date: Fri, 17 Feb 2023 14:07:50 +0100 Subject: [PATCH] [FIX] Fix on Link_report for release stage * Fix also on artifacts name construction --- manifest-pipeline-yocto.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/manifest-pipeline-yocto.yml b/manifest-pipeline-yocto.yml index 483be9b..d001221 100644 --- a/manifest-pipeline-yocto.yml +++ b/manifest-pipeline-yocto.yml @@ -570,7 +570,7 @@ notify: cat Job_message.txt Job_message_*.txt > Job_message_edgehog_${tag}.txt cat Job_report_*.txt > Job_report_edgehog_${tag}.txt cat Link_report_*.txt > Link_report_edgehog_${tag}.txt - cp Link_report_edgehog_${tag}.txt Link_report.txt + cat changelog.md > Changelog_edgehog_${tag}.md sed -i -E 's/\"//g' Link_report_edgehog_${tag}.txt @@ -614,6 +614,9 @@ notify: sed -i -E 's/\\n/ \\n\\n /g' notification_4.json curl -X POST -H "Content-Type: application/json" --data @notification_4.json $WEBHOOK + + cp Link_report_edgehog_${tag}.txt Link_report.txt + sed -i 's/\"//g' Link_report.txt echo "${changelog_report#?}" | cut -f1 -d"?" > changelog_link.txt @@ -636,8 +639,6 @@ release: - if: $CI_COMMIT_TAG script: - | - cat Link_report.txt - cat changelog_link.txt rm -rf release.sh echo "#!/bin/bash" >> release.sh echo "" >> release.sh @@ -647,7 +648,7 @@ release: # Reading each line if [[ ${line} == *https* ]]; then url=$line - name=$(echo ${line} | sed 's/^.*seco_edgehog/seco_edgehog/') + name=$(echo ${line} | sed 's/^.*seco_/seco_/') command=${command}'{"name": "'${name}'", "url":"'${url}'"}, ' fi done < Link_report.txt -- GitLab