Skip to content

Commit c64b21b

Browse files
authored
Merge pull request #794 from gradle/erichaagdev/exceptions-file
Exception is written to `exceptions.txt` file on build scan error
2 parents de5e0aa + dc03da8 commit c64b21b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/scripts/gradle/gradle-init-scripts/configure-build-validation.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ def registerBuildScanActions = { def buildScan, def rootProjectName ->
5454
buildScan.onError { error ->
5555
def errorFile = new File(expDir, 'errors.txt')
5656
errorFile.text = 'Build Scan publishing failed.'
57+
def exceptionFile = new File(expDir, 'exceptions.txt')
58+
exceptionFile.text = error
5759
}
5860
}
5961

0 commit comments

Comments
 (0)