[Anthill-pro] Help with environment variables and properties
Baker, Andrew
abaker at rsasecurity.com
Tue Dec 19 00:53:43 CST 2006
I did send this to the support team, but thought I would post it here as
well in case anyone else either can help or can benefit.
I am having some issues with properties.
I need to be able to prompt for a "platform" variable at the start of a
run (or insert it into a URL to kick off a build). This platform is
used to provide different compile options to a build script.
Our existing build script runs the configuration steps when the
following command is executed:
MD_PLATFORM=linux72 ./buildscript.sh config
I am trying to replicate this in AntHill3 using the following scenario,
which is failing.
A) The Property WF_PLATFORM is a property put on the WorkFlow which has
a default of linux72.
Step - Shell
MD_PLATFORM=${property:WF_PLATFORM} ./ buildscript.sh config
output
command line: MD_PLATFORM=linux72 ./ buildscript.sh config
command work dir:
/home/build/anthillpro-agent/var/jobs/projects/PROJECT/PROJECT/project
command environment:
log
70773439 ERROR com.urbancode.shell.Shell - java.io.IOException:
MD_PLATFORM=linux72: not found
java.io.IOException: java.io.IOException: MD_PLATFORM=linux72: not found
B) If I define this in the Environment vars, it appears unexpanded in
the output.log
command environment:
MD_PLATFORM=${property:WF_PLATFORM}
C) My preference would be to set the MD_PLATFORM=${property:WF_PLATFORM}
variable at the beginning of the workflow and have it available for each
step. When I put this in the Environment vars section it does not
expand the property into its value as seen above in the output.
D) Long term I need to be able to iterate through a number of
"platforms" kicking off the build for each of them, so I will have the
following, preferably in parallel.
Checkin
Set platform = abc
Run workflow
Set platform = xyz
Run workflow
Set platform = 123
Run workflow
Set platform = 789
Run workflow
Can you explain how I would do this?
Thanks
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.urbancode.com/pipermail/anthill-pro/attachments/20061219/55660a85/attachment.htm
More information about the Anthill-pro
mailing list