Only set --stacktrace --info if verbose logging is enabled (#1557)

This is a quality-of-life improvement; make our build logs more easy to
read through for the default case.

If we need more information, we can click on the "Enable debug logging"
checkbox when re-running a job, which then populates the `runner.debug`
context variable.
This commit is contained in:
Daniel Chao
2026-04-24 15:28:57 -07:00
committed by GitHub
parent e07ff96de8
commit 87b15f7a70
6 changed files with 172 additions and 86 deletions
+4 -2
View File
@@ -29,8 +29,7 @@ fetchDepth: Int?
fixed gradleArgs =
new Listing {
"--info"
"--stacktrace"
"$DEBUG_ARGS"
"--no-daemon"
"-DpklMultiJdkTesting=true"
when (isRelease) {
@@ -45,6 +44,9 @@ fixed job {
when (os == "windows") {
["JAVA_HOME"] = "/jdk"
}
["DEBUG_ARGS"] =
// language=GithubExpressionLanguage
"${{ case(runner.debug == '1', '--info --stacktrace', '') }}"
}
when (os == "macOS") {
`if` =