From f1313f0e2f43d6b4490bc1cc3ac8830f66040610 Mon Sep 17 00:00:00 2001 From: saridsa2 Date: Sat, 11 Apr 2026 15:34:30 +0530 Subject: [PATCH] ci: use Teams notification plugin --- .woodpecker.yml | 36 +++++------------------------------- 1 file changed, 5 insertions(+), 31 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index cc474e3..cd62cb6 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -13,37 +13,11 @@ steps: - npm test -- --ci --forceExit notify-teams: - 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: - TEAMS_WEBHOOK: + image: mobydeck/ci-teams-notification + settings: + webhook_url: from_secret: teams_webhook + facts: project,message + buttons: pipeline when: - status: [success, failure]