2 Commits

Author SHA1 Message Date
0f5bd7d61a ci: fix Teams notification — use Adaptive Card with curl
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2026-04-11 15:37:20 +05:30
f1313f0e2f ci: use Teams notification plugin
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2026-04-11 15:34:30 +05:30

View File

@@ -1,6 +1,4 @@
# Woodpecker CI pipeline for Helix Engage Server (sidecar) # Woodpecker CI pipeline for Helix Engage Server (sidecar)
#
# Runs unit tests. Teams notification on completion.
when: when:
- event: [push, manual] - event: [push, manual]
@@ -14,36 +12,13 @@ steps:
notify-teams: notify-teams:
image: curlimages/curl image: curlimages/curl
commands:
- |
if [ "${CI_PIPELINE_STATUS}" = "success" ]; then
ICON="✅"
else
ICON="❌"
fi
curl -s -X POST "${TEAMS_WEBHOOK}" \
-H "Content-Type: application/json" \
-d "{
\"type\": \"message\",
\"attachments\": [{
\"contentType\": \"application/vnd.microsoft.card.adaptive\",
\"content\": {
\"type\": \"AdaptiveCard\",
\"version\": \"1.4\",
\"body\": [
{\"type\": \"TextBlock\", \"size\": \"Medium\", \"weight\": \"Bolder\", \"text\": \"${ICON} Helix Engage Server — Pipeline #${CI_PIPELINE_NUMBER}\"},
{\"type\": \"TextBlock\", \"text\": \"**Branch:** ${CI_COMMIT_BRANCH}\", \"wrap\": true},
{\"type\": \"TextBlock\", \"text\": \"**Status:** ${CI_PIPELINE_STATUS}\", \"wrap\": true},
{\"type\": \"TextBlock\", \"text\": \"**Commit:** ${CI_COMMIT_MESSAGE}\", \"wrap\": true}
],
\"actions\": [
{\"type\": \"Action.OpenUrl\", \"title\": \"View Pipeline\", \"url\": \"https://operations.healix360.net/repos/2/pipeline/${CI_PIPELINE_NUMBER}\"}
]
}
}]
}"
environment: environment:
TEAMS_WEBHOOK: TEAMS_WEBHOOK:
from_secret: teams_webhook from_secret: teams_webhook
commands:
- >
curl -s -X POST "$TEAMS_WEBHOOK"
-H "Content-Type:application/json"
-d '{"type":"message","attachments":[{"contentType":"application/vnd.microsoft.card.adaptive","content":{"type":"AdaptiveCard","version":"1.4","body":[{"type":"TextBlock","size":"Medium","weight":"Bolder","text":"Helix Engage Server — Build #'"$CI_PIPELINE_NUMBER"'"},{"type":"TextBlock","text":"Branch: '"$CI_COMMIT_BRANCH"'","wrap":true},{"type":"TextBlock","text":"'"$(echo $CI_COMMIT_MESSAGE | head -c 80)"'","wrap":true}],"actions":[{"type":"Action.OpenUrl","title":"View Pipeline","url":"https://operations.healix360.net/repos/2/pipeline/'"$CI_PIPELINE_NUMBER"'"}]}}]}'
when: when:
- status: [success, failure] - status: [success, failure]