配置 Jenkins (2.121.3) 以在 Global Tool Configuration->JDK installations... 菜单中使用“Download URL for binary archive”中的JDK 12在执行构建时产生以下错误:
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
Build step 'Invoke top-level Maven targets' marked build as failure
Finished: FAILURE
我该如何解决这个问题?