-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Platform: All, OS: All
Hi
The default java on my system is 1.5, but I've also got 1.6 installed.
The maven project I was building required the use of the 1.6 JDK. The path to
my JDK 1.6 can be entered on the hudson 'configure system' screen, but it isn't
possible to choose this JDK in the project config (and if you don't specify a
JDK here the default system JDK gets used). I eventually discovered that the
option to choose JDK only appears if two or more JDKs are entered in 'configure
system'
It should be possible to override the default JDK without having to specify more
than one JDK.
Kind Regards,
Alex
- is related to
-
JENKINS-659 If only one JDK is configured in system, don't offer JDK config in projects
-
- Closed
-
I looked at the code and it appears the intention is to always use the
configured JDK when there is only one (never use "(Default)", ie java from
path). If you had no JDKs and added one this would work correctly; all projects
would then use the configured JDK. However, if you have multiple JDKs and some
were configured with "(Default)", then moving down to one JDK does not switch
those projects. They continue to use java from path until you click Save on
their config screen, which will switch it over (even though no JDK selector
appears).
So the question is: show the selection box when only one JDK is configured (pick
"(Default)" vs that one) or fix things so moving down to one JDK switches all
"(Default)" projects to that one JDK.