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

后端 未结 9 1855
情话喂你
情话喂你 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:17

    The best way is,

    1. Install all required JDKs to your system.
    2. Add those to jenkins under JDK title in configuration page.
    3. Install Maven Info plugin to jenkins
    4. Restart jenkins
    5. Go to your job configuration page.
    6. Select required JDK from the JDK combo box appear under Maven Info Plugin Configuration
    7. Build it
    8. Enjoy!!!

提交回复
热议问题