Scope captured build failures (#574)

Scopes the captured build failures to only `RUN_WORK` and
`CONFIGURE_PROJECT`.
This commit is contained in:
Eric Haag 2025-03-04 10:29:20 -06:00 committed by GitHub
commit 4504a95ca5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,8 +41,11 @@ abstract class BuildResultsRecorder implements BuildService<BuildResultsRecorder
// Got EVALUATE SETTINGS event: not a config-cache hit"
configCacheHit = false
}
if (finishEvent.failure != null) {
buildFailed = true
if (buildOperation.metadata == BuildOperationCategory.RUN_WORK ||
buildOperation.metadata == BuildOperationCategory.CONFIGURE_PROJECT) {
if (finishEvent.failure != null) {
buildFailed = true
}
}
}