I have successfully set up Jenkins to run an ANT script on a slave, and Jenkins also installs the JDK on the slave automatically before running the job. Fine so far, but my ANT script needs to know the path where Jenkins installed the JDK into. How can my ANT script ask for that path decided by Jenkins on that slave?Thanks!
-Markus--
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-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Thanks for chiming in. Indeed I meanwhile fixed it. For all who like to know the answer:
* Jenkins sets the environment variable JAVA_HOME on its own when configured the JDK in the Jenkins config's JDK section. The variable's content is pointing to the JDK folder in the particular slave.
* The variable can be passed into any ANT script when configuring the build jon to do so in the ANT section:
jdk.version=$JAVA_HOME
Regards
Markus
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/04n5sSsbSFI/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.