Skip to content

[CI] fixes #2564

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/release-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ cd $RELEASE_DIRECTORY
ABSOLUTE_RELEASE_DIRECTORY=$(pwd)

# Make a working directory
TEMPORARY_DIRECTORY=${ABSOLUTE_RELEASE_DIRECTORY}/tmp
TEMPORARY_DIRECTORY=${ABSOLUTE_RELEASE_DIRECTORY}/.tmp
rm -rf $TEMPORARY_DIRECTORY
mkdir $TEMPORARY_DIRECTORY

Expand Down
34 changes: 33 additions & 1 deletion ci/cf_generate_message.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ if [ "${RESULT_STATUS}" == "failed" ]; then
EOF
)

# Do not add new platforms here, there is a limit of 10 currently, see a block below instead
fields=""
for p in Argon Boron BSoM B5SoM Tracker TrackerM ESomX P2 GCC Newhal P2; do
for p in Argon Boron BSoM B5SoM Tracker TrackerM ESomX P2 GCC Newhal; do
if echo -e "${failures}" | grep -q "PLATFORM=\"${p,,}\""; then
msg=":scrum_closed: $p\\n"
else
Expand Down Expand Up @@ -82,6 +83,37 @@ EOF
EOF
)

fields=""
for p in P2; do
if echo -e "${failures}" | grep -q "PLATFORM=\"${p,,}\""; then
msg=":scrum_closed: $p\\n"
else
msg=":scrum_finished: $p\\n"
fi
field=$(cat <<EOF
{
"type": "mrkdwn",
"text": "${msg}"
}
EOF
)
comma=","
if [ "${fields}" == "" ]; then
comma=""
fi
fields="${fields}${comma}${field}"
done
ADDITIONAL_BLOCKS+=$(cat <<EOF
,{
"type": "section",
"fields": [
${fields}
]
}
EOF
)


if [ "${CIRCLE_ARTIFACTS_URL}" == "" ]; then
msg=":scrum_closed: Artifacts"
else
Expand Down