如何为 Jenkins 工作更改 JDK? [英] How to change the JDK for a Jenkins job?

查看:69
本文介绍了如何为 Jenkins 工作更改 JDK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从另一台机器上的现有 jenkins 服务器导入了 jenkins 作业.但问题是,它根据旧机器引用了 JDK,我想将其更改为使用我的新 jenkins 中配置的 JDK.但我无法找到任何方法来做到这一点.因此,如果您遇到这种情况并找到了方法,请也请帮助我.

I have imported the jenkins jobs from existing jenkins server from another machine. But the problem is, it has the JDK referenced as per the old machines and I want to change it to use the JDK configured in my new jenkins. But I am unable to find any way of doing this. So, please if you have come across this situation and found a way then please help me too.

谢谢.

推荐答案

job name"中有一个 JDK 下拉菜单 -> 在 Jenkins web ui 中配置.它将列出 Jenkins 配置中可用的所有 JDK.

There is a JDK dropdown in "job name" -> Configure in Jenkins web ui. It will list all JDKs available in Jenkins configuration.

这篇关于如何为 Jenkins 工作更改 JDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆