Unverified Commit 7e34bc69 authored by Eric Haag's avatar Eric Haag
Browse files

Scope captured build failures

Scopes the captured build failures to only RUN_WORK and
CONFIGURE_PROJECT.
parent 0eda626a
Loading
Loading
Loading
Loading
+3
Changes for sources/src/resources/init-scripts/gradle-actions.build-result-capture-service.plugin.groovy: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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() {