From 3db240f8a5ba2b98de7023c437c917bed21294aa Mon Sep 17 00:00:00 2001 From: thom Date: Fri, 28 Aug 2026 11:02:35 +0000 Subject: [PATCH] add woodpecker pipeline --- .woodpecker.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..de243e7 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,25 @@ +when: + - event: [push, pull_request] + +steps: + - name: test + image: node:22-alpine + commands: + - node -e "console.log('hello from woodpecker')" + - echo "all good" + + # On failure, ask the AI bridge for a suggested fix. + # Add the ai_bridge_token secret in the Woodpecker UI first. + - name: ai-triage + image: curlimages/curl:latest + when: + status: [failure] + environment: + BRIDGE_TOKEN: + from_secret: ai_bridge_token + commands: + - | + curl -sS -X POST http://172.17.0.1:3001/webhook/job-failed \ + -H "Content-Type: application/json" \ + -H "X-Bridge-Token: $BRIDGE_TOKEN" \ + -d "{\"repo\":\"$CI_REPO\",\"build\":\"$CI_PIPELINE_NUMBER\",\"step\":\"test\",\"logs\":\"pipeline $CI_PIPELINE_NUMBER failed on $CI_COMMIT_BRANCH\"}" \ No newline at end of file