Quantcast

[JIRA] (JENKINS-1640) Environment variables not passed through to Ant tasks

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-1640) Environment variables not passed through to Ant tasks

JIRA noreply@jenkins-ci.org

Same problem here. I have an ant task that uses ${env.HOSTNAME} to pick up a .properties file depending on the hostname of the machine.

It turns out that that specific variable doesn't expand, although many others do just fine.

I checked System Information, and HOSTNAME is correctly set under Environment Variables. Echoing the properties filename I get this, though:

[echo] /mnt/slave/workspace/Platform_develop_Build-Common/git/Common/${env.HOSTNAME}.build.properties

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
Loading...