Unverified Commit 4504a95c authored by Eric Haag's avatar Eric Haag Committed by GitHub
Browse files

Scope captured build failures (#574)

Scopes the captured build failures to only `RUN_WORK` and
`CONFIGURE_PROJECT`.
parents 0eda626a 7e34bc69
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() {