Issue Type: Bug Bug
Assignee: Unassigned
Components: ant
Created: 08/Jan/13 9:46 AM
Description:

I have an build job which uses Java 1.6. Both java 1.6 and 1.7 are available on the system and I set JAVA_HOME to pickup 1.6.

Even when I set JAVA_HOME system wide in /etc/environment, ant is being called without that variable and my build is failing.

I tried the following to find it:

Renamed the existing ant as ant.bak in /usr/bin, create an file called ant which prints the environment variables and calls the actual ant. The output of the above does not contain the variable JAVA_HOME.

My system properties shows

java.home /usr/lib/jvm/java-7-openjdk-amd64/jre
JAVA_HOME /usr/lib/jvm/java-6-openjdk-amd64

but it is not taken into consideration. I export JAVA_HOME outside of jenkins and do an ant, the build is success.

I have not installed the envinject plugin.

Regards,
Seenu.

Environment: Ubuntu 12.10
Project: Jenkins
Priority: Blocker Blocker
Reporter: Srinivasa T N
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

Reply via email to