Re: Jenkins using wrong JDK

2014-03-03 Thread Les Mikesell
On Fri, Oct 18, 2013 at 8:34 AM, Diego Ballve wrote: > Hi Farrukh! > > Thanks for sharing. Kinda silly I have to install 2 JDKs to be able to use > one of them, but it resolved the problem. I don't think you'd actually have to install the other JDK - just configure jenkins with paths like you did

Re: Jenkins using wrong JDK

2014-03-03 Thread Alexei Novikov
Your info is very helpful, thank you! You saved my day. -- 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 o

Re: Jenkins using wrong JDK

2013-10-18 Thread Diego Ballve
Hi Farrukh! Thanks for sharing. Kinda silly I have to install 2 JDKs to be able to use one of them, but it resolved the problem. br, Diego -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emai

Re: Jenkins using wrong JDK

2013-09-20 Thread Ulli Hafner
I'm on 1.531 too. I have no environment variables set, just 3 JDK configurations in Jenkins. Maybe that is different… Are you running the build on a slave? Ulli Am 20.09.2013 um 18:00 schrieb Farrukh Najmi : > What version of jenkins are you running? I am running Jenkins 1.531. > > On 09/20/2

Re: Jenkins using wrong JDK

2013-09-20 Thread Farrukh Najmi
I think the following issue is closer to this thread: https://issues.jenkins-ci.org/browse/JENKINS-755 Thanks for the terrific help! Jenkins community rocks! On Friday, September 20, 2013 12:48:18 PM UTC-4, Daniel Beck wrote: > > Known issue: https://issues.jenkins-ci.org/browse/JENKINS-17373

Re: Jenkins using wrong JDK

2013-09-20 Thread Les Mikesell
On Fri, Sep 20, 2013 at 8:39 AM, Farrukh Najmi 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 req

Re: Jenkins using wrong JDK

2013-09-20 Thread Daniel Beck
Known issue: https://issues.jenkins-ci.org/browse/JENKINS-17373 On 20.09.2013, at 18:31, Geoff Cummings wrote: > 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 Mikese

Re: Jenkins using wrong JDK [solved]

2013-09-20 Thread Farrukh Najmi
On 09/20/2013 12:16 PM, Les Mikesell wrote: On Fri, Sep 20, 2013 at 8:39 AM, Farrukh Najmi 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 exa

Re: Jenkins using wrong JDK

2013-09-20 Thread Geoff Cummings
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 wrote: On Fri, Sep 20, 2013 at 8:39 AM, Farrukh Najmi wrote: > Hi Guys, > > Initially all was well and my Jenkins co

Re: Jenkins using wrong JDK

2013-09-20 Thread Farrukh Najmi
What version of jenkins are you running? I am running Jenkins 1.531. On 09/20/2013 11:30 AM, Ulli Hafner wrote: Hmm, I have such a list box, for maven and freestyle builds. Am 20.09.2013 um 16:32 schrieb Farrukh Najmi >: I am using job type of a maven multi-mod

Re: Jenkins using wrong JDK

2013-09-20 Thread Farrukh Najmi
I am coming to the conclusion that something is not working misunderstood by me (or not working correctly) as to how Jenkins sets up its environment variables and specially the PATH and JAVA_HOME env vars. I tried setting key env vars in global config. Here is what it looks like in ~jenkins/co

Re: Jenkins using wrong JDK

2013-09-20 Thread Ulli Hafner
Hmm, I have such a list box, for maven and freestyle builds. Am 20.09.2013 um 16:32 schrieb Farrukh Najmi : > I am using job type of a maven multi-module project. There is no such JDK > List Box that I see. Here is a screenshot of my project config: > > http://wellfleetsoftware.com/files/tmp/s

Re: Jenkins using wrong JDK

2013-09-20 Thread Farrukh Najmi
I am using job type of a maven multi-module project. There is no such JDK List Box that I see. Here is a screenshot of my project config: http://wellfleetsoftware.com/files/tmp/screenshot.png BTW, what determines whether the java command during build uses fully qualified path or not? Thanks

Re: Jenkins using wrong JDK

2013-09-20 Thread Ulli Hafner
What job type are you using? I have a JDK Listbox right above the advanced project options section… Am 20.09.2013 um 16:01 schrieb Farrukh Najmi : > I do not see a Java Version list box in my job config page in UI. I have > expanded varios Advanced section in the page but still do not see Java

Re: Jenkins using wrong JDK

2013-09-20 Thread Eric Pyle
When you added the JDK 6 installation, most likely the installer altered your system path to place that installation first on the path. Try creating a new Jenkins job containing a shell script job step with the command "which java". That will tell you where the OS is looking when you call java

Re: Jenkins using wrong JDK

2013-09-20 Thread Farrukh Najmi
But I used the GUI option for Jenkins to install JDK from java.sun.com and never specified a fullpath location for JDK in the first place when I added a JDK7 installation. Later I added and removed a JDK 6 installation. All was done via GUI. So I am at a loss as to what went wrong and how I c

Re: Jenkins using wrong JDK

2013-09-20 Thread Eric Pyle
I think you have picked up on the solution there. Either always use the full path to the desired Java installation, or alter your path so that 'which java' returns the correct path. Eric On 9/20/2013 10:01 AM, Farrukh Najmi wrote: I do not see a Java Version list box in my job config page in U

Re: Jenkins using wrong JDK

2013-09-20 Thread Farrukh Najmi
I do not see a Java Version list box in my job config page in UI. I have expanded varios Advanced section in the page but still do not see Java Version list. I am using Jenkins version 1.531. The only Java Version available in Jenkins global config is JDK 7. One odd difference I notice in the l

Re: Jenkins using wrong JDK

2013-09-20 Thread Ulli Hafner
What values are in your Java Version list box in you job configuration? Which Java Versions are visible in Jenkins global configuration? Please use the UI only... Am 20.09.2013 um 15:39 schrieb Farrukh Najmi : > Hi Guys, > > Initially all was well and my Jenkins config.xml was configured for j

Jenkins using wrong JDK

2013-09-20 Thread Farrukh Najmi
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