How can I configure a Hudson job to use a specific JDK?

后端 未结 9 1865
情话喂你
情话喂你 2020-12-05 06:44

I have a number of projects running on a Hudson slave. I\'d like one of them to run Ant under Java6, rather than the default (which is Java5 in my environment).

In t

9条回答
  •  爱一瞬间的悲伤
    2020-12-05 07:33

    We have both Java 5 and Java 6 configured for use in our Hudson instance.

    Under Manage Hudson -> Configuration System you can add a number of JDKs and specify the path for JAVA_HOME. In the configuration for each job you then selected which JDK you would like that job to run on.

提交回复
热议问题