mirror of
https://github.com/gradle/actions.git
synced 2025-04-19 17:29:20 +08:00
Scope captured build failures (#574)
Scopes the captured build failures to only `RUN_WORK` and `CONFIGURE_PROJECT`.
This commit is contained in:
commit
4504a95ca5
@ -41,8 +41,11 @@ 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 (finishEvent.failure != null) {
|
if (buildOperation.metadata == BuildOperationCategory.RUN_WORK ||
|
||||||
buildFailed = true
|
buildOperation.metadata == BuildOperationCategory.CONFIGURE_PROJECT) {
|
||||||
|
if (finishEvent.failure != null) {
|
||||||
|
buildFailed = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user