Issue Type: Bug Bug
Assignee: Unassigned
Components: core
Created: 12/Feb/15 6:16 PM
Description:

I noticed that when there is no installer available for a JDK, the JAVA_HOME environment variable will be empty in the environment of a build. This will happen for example when there is no installer configured for a JDK. In that case it's not hard to find the cause. But for the case I describe below it's much harder to find out why JAVA_HOME is empty.

Therefore I think a build should fail or JAVA_HOME should not be set when a specific JDK is configured for that build and no installer is available for that JDK.

Here are the steps to reproduce:

  • Configure two JDK's, named JDK1 and JDK2 (because if you have only one JDK you can't select one in a job)
  • Add an 'Extract .zip/.tar.gz' installer to JDK1 and set the label for this installer to 'jdk1', so it won't be available for installation on nodes to which this label is not assigned
  • Create a freestyle job and select JDK1 as JDK
  • Run the job and check that JAVA_HOME is empty
Environment: Jenkins 1.580.1
Project: Jenkins
Priority: Minor Minor
Reporter: Wilco Greven
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to