如何更改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.