You will only see the JDK list box in the job config if you have more than one JDK installation configured in your main jenkins config page
On 20 Sep 2013, at 17:16, Les Mikesell <lesmikes...@gmail.com> wrote: On Fri, Sep 20, 2013 at 8:39 AM, Farrukh Najmi <farrukh.n...@gmail.com> wrote: > Hi Guys, > > Initially all was well and my Jenkins config.xml was configured for just > JDK7. > I then added a JDK6 installation to Jenkins config and did a new build > manually. > The build failed and on examination I realized my project requires JDK7 to > build. > So I edited my Jenkins config to delete the JDK6 installation I had added > prior to previous build that had failed. > Now only the JDK7 installation was left in Jenkins config. > > I did another build but now I see that it is still trying to build with JDK6 > only instead of the JDK6 installation I had added from Oracle it is now > using the JDK 6 that is part of my Ubuntu setup. > > What am I doing wrong and how can I make Jenkins only use the JDK7 that I > have configured? You should be able to use multiple JDK versions and select them by job. In the global jenkins configuration under JDK installations, give each JDK a name, then in the node configurations under tool locations, add the appropriate path to each named JDK installation. And in the job, pick the JDK version by name. -- Les Mikesell lesmikes...@gmail.com -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.