Scope captured build failures

Scopes the captured build failures to only RUN_WORK and
CONFIGURE_PROJECT.
This commit is contained in:
Eric Haag 2025-03-04 08:23:26 -06:00
parent 0eda626a36
commit 7e34bc6983
No known key found for this signature in database
GPG Key ID: 6773458DF11F3FC4

View File

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