Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gitlab-ci
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Clea OS
infrastructure
gitlab-ci
Commits
4fa3c2b5
Commit
4fa3c2b5
authored
11 months ago
by
Luca Romoli
Browse files
Options
Downloads
Patches
Plain Diff
Add some echoes for debug purposes
parent
400ff327
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/notify_message.sh
+8
-0
8 additions, 0 deletions
scripts/notify_message.sh
with
8 additions
and
0 deletions
scripts/notify_message.sh
+
8
−
0
View file @
4fa3c2b5
...
@@ -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
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment