Skip to content

fix(bugsnag): keep the build UUID off create-build - #1377

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/bugsnag-create-build-uuid
Aug 31, 2026
Merged

fix(bugsnag): keep the build UUID off create-build#1377
bmc08gt merged 1 commit into
code/cashfrom
fix/bugsnag-create-build-uuid

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

The release deploy has failed since #1374 with unknown flag --build-uuid from bugsnagCreateReleaseBuild (run 33406657816). The bundle builds and signs fine; the create-build finalizer kills the job at the end.

#1374 set buildUuid in the bugsnag { variants { release { … } } } block. In bugsnag-gradle-plugin 1.2.0 that one property feeds two CLI calls:

autoCreateBuild = true was already wiring create-build as a finalizer of bundleRelease, so the unsupported flag went out on every release build. PR CI stayed green because only the deploy workflow runs the Bugsnag tasks.

This sets the UUID on the mapping upload task instead of through the DSL, so create-build returns to its working default and the mapping still carries the SHA that the manifest's com.bugsnag.android.BUILD_UUID holds. The plugin writes that property only when the DSL supplies a value, so it cannot overwrite the value set here whichever order the two configuration actions run in — worth stating, because the reverse arrangement (clearing the property on create-build) loses silently: the plugin's registration action runs after container-level configureEach.

UploadMappingTask is internal to the plugin, so the task is looked up by name rather than by type. The comment says to drop this once the plugin stops passing the flag to create-build.

The release deploy has failed since #1374 with `unknown flag --build-uuid`
from `bugsnagCreateReleaseBuild`. bugsnag-gradle-plugin 1.2.0 hands the
variant's `buildUuid` to two CLI calls: `upload android-proguard`, which
accepts `--build-uuid`, and `create-build`, which does not — the flag is
absent from the 3.10.2 the plugin embeds and from 3.10.5, the current
release. PR CI never caught it because only the deploy workflow runs the
Bugsnag tasks.

Set the UUID on the mapping upload task instead of through the `bugsnag`
block, so create-build goes back to its working default. The plugin only
writes that property when the DSL supplies a value, so it cannot overwrite
this one regardless of which configuration action runs first.

Verified against a stand-in CLI that records its arguments: create-build
now passes no `--build-uuid` and keeps the rest of its flags, the mapping
upload passes `--build-uuid=<HEAD>`, and the merged release manifest
carries the same SHA in `com.bugsnag.android.BUILD_UUID`.
@bmc08gt bmc08gt self-assigned this Aug 31, 2026
@github-actions github-actions Bot added the type: fix Bug fix label Aug 31, 2026
@bmc08gt
bmc08gt merged commit 8f01862 into code/cash Aug 31, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant