`$WORKERS_CI_BRANCH` empty on rebuild

I'm using the $WORKERS_CI_BRANCH variable in my build script. This works fine, but when a build randomly fails, and I click "retry build", this new run does not set this env var and my scripts fail 😦
5 Replies
Walshy
Walshy•5mo ago
Hey @Martin 0x522E have you got a build id? :) ?workers-build-id
SuperHelpflare
SuperHelpflare•5mo ago
The Workers build ID is a unique build identifier. It's the UUID in the browser bar (for example, a URL would be dash.cloudflare.com/ACCOUNT_ID/workers/services/view/WORKER/production/builds/BUILD_ID where the build ID looks something like a398d794-7322-4c97-96d9-40b5140a8d9b). This ID can help troubleshoot some issues with Workers builds so if you have a failing build make sure you grab that ID for the team to use.
Martin 0x522E
Martin 0x522EOP•5mo ago
Original randomly failed build: b20d2d17-0595-4bdc-8306-2e3ef66d9260 Subsequent failure because of missing branch var: d5860052-20e4-42d8-a6bb-9f1f469f467b
Walshy
Walshy•5mo ago
Team have found the bug, thank you! They will get it fixed soon
Martin 0x522E
Martin 0x522EOP•5mo ago
awesome thanks man!

Did you find this page helpful?