mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-11-22 17:12:51 +00:00
Make build-result-capture script compatible with config-cache
This commit is contained in:
parent
8aaf080d68
commit
6cc033f2b3
1 changed files with 3 additions and 2 deletions
|
@ -27,7 +27,10 @@ if (isTopLevelBuild) {
|
||||||
|
|
||||||
def registerCallbacks(buildScanExtension, rootProjectName) {
|
def registerCallbacks(buildScanExtension, rootProjectName) {
|
||||||
buildScanExtension.with {
|
buildScanExtension.with {
|
||||||
|
def requestedTasks = gradle.startParameter.taskNames.join(" ")
|
||||||
|
def gradleVersion = GradleVersion.current().version
|
||||||
def buildFailed = false
|
def buildFailed = false
|
||||||
|
|
||||||
buildFinished { result ->
|
buildFinished { result ->
|
||||||
buildFailed = (result.failure != null)
|
buildFailed = (result.failure != null)
|
||||||
}
|
}
|
||||||
|
@ -38,8 +41,6 @@ def registerCallbacks(buildScanExtension, rootProjectName) {
|
||||||
|
|
||||||
def buildResultsFile = new File(buildResultsDir, System.getenv("GITHUB_ACTION") + System.currentTimeMillis() + ".json")
|
def buildResultsFile = new File(buildResultsDir, System.getenv("GITHUB_ACTION") + System.currentTimeMillis() + ".json")
|
||||||
|
|
||||||
def requestedTasks = gradle.startParameter.taskNames.join(" ")
|
|
||||||
def gradleVersion = GradleVersion.current().version
|
|
||||||
def buildScanUri = buildScan.buildScanUri.toASCIIString()
|
def buildScanUri = buildScan.buildScanUri.toASCIIString()
|
||||||
def buildResults = [
|
def buildResults = [
|
||||||
rootProject: rootProjectName,
|
rootProject: rootProjectName,
|
||||||
|
|
Loading…
Reference in a new issue