RE: How to pass the JDK path to an ANT script?

2013-05-05 Thread Markus Karg
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

 

From: jenkinsci-users@googlegroups.com
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Ghoulem Atef
Sent: Mittwoch, 1. Mai 2013 22:40
To: jenkinsci-users@googlegroups.com
Subject: Re: How to pass the JDK path to an ANT script?

 

Hi,

you have to set correctly the JAVA_HOME

 

 

2013/5/1 Markus KARG 

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-users+unsubscr...@googlegroups.com
<mailto:jenkinsci-users%2bunsubscr...@googlegroups.com> .
For more options, visit https://groups.google.com/groups/opt_out.
 
 

 

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

-- 
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 options, visit https://groups.google.com/groups/opt_out.




Re: How to pass the JDK path to an ANT script?

2013-05-01 Thread Ghoulem Atef
Hi,
you have to set correctly the JAVA_HOME



2013/5/1 Markus KARG 

> 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-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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 options, visit https://groups.google.com/groups/opt_out.