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

View File

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