简体   繁体   English

Jenkins 保存应用后JDK安装消失

[英]Jenkins JDK installation disappears after save and apply

Here I add the setting and click apply and save.这里我添加设置并点击应用并保存。

在此处输入图像描述

But when I go back to the Global Tool Configuration it appears as if not configured.但是当我 go 回到Global Tool Configuration时,它似乎没有配置。 And if I click on the button I can see the settings I configured previously.如果我点击按钮,我可以看到我之前配置的设置。

在此处输入图像描述

Needed to fix this so the jenkins will look for correct java home in slave machines.需要修复此问题,以便 jenkins 将在从机中寻找正确的 java 主目录。

Jenkins version: 2.375.1 Jenkins 版本:2.375.1

  1. You need to configure another dummy JDK under Global Tool Configuration as following: JDKDisplayBug您需要在全局工具配置下配置另一个虚拟 JDK ,如下所示:JDKDisplayBug
  2. After that, you can see the list of your JDKs under project configuration.之后,您可以在项目配置下看到您的 JDK 列表

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM