我是goCd的新手。我的本地系统中有服务器和代理。为构建创建了一个管道,但它失败并出现以下错误。
[去]任务:gradlew buildtook:2.162sexited:1:compileJava FAILED 1 actionable task:1执行
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileJava'. > Could not find tools.jar. Please check that C:\Program Files (x86)\Go Agent\jre contains a valid JDK installation. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 1s [go] Task status: failed, took: 2.162s, exited: 1
[go] 当前工作状态:失败
我在 maven 项目中看到了类似的问题,其中 go agent 无法找到 JDK 路径,但如何为 go agent 设置 JDK 尚不清楚。请让我知道以获取更多信息。