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

查看:142
本文介绍了如何更改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.

谢谢。

推荐答案

在Jenkins web ui中的作业名称 - >配置中有一个JDK下拉列表。它将列出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天全站免登陆