mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-09-11 02:02:22 +08:00
Capture build results when config-cache is enabled
When enabled, the configuration-cache will cause the build to fail when a `buildFinished` listener is added. Instead, use a BuildService to listen for task failures and to write the results on build completion.
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
package com.gradle.gradlebuildaction
|
||||
|
||||
import groovy.json.JsonSlurper
|
||||
import spock.lang.Ignore
|
||||
|
||||
import static org.junit.Assume.assumeTrue
|
||||
|
||||
class TestBuildResultOutput extends BaseInitScriptTest {
|
||||
class TestBuildResultRecorder extends BaseInitScriptTest {
|
||||
def initScript = 'build-result-capture.init.gradle'
|
||||
|
||||
def "produces build results file for build with #testGradleVersion"() {
|
||||
@@ -35,7 +34,6 @@ class TestBuildResultOutput extends BaseInitScriptTest {
|
||||
testGradleVersion << ALL_VERSIONS
|
||||
}
|
||||
|
||||
@Ignore
|
||||
def "produces build results file for build with --configuration-cache on #testGradleVersion"() {
|
||||
assumeTrue testGradleVersion.compatibleWithCurrentJvm
|
||||
|
Reference in New Issue
Block a user