local variables in build forge steps
Hello,
I want to use a local variable in a step. My test case on linux looks like this: x=123 echo $x build forge transforms this to. 118 29.01.14 09:30 SCRIPT x=123 119 29.01.14 09:30 SCRIPT echo xand the output is 121 29.01.14 09:30 EXEC x looks like the pre parsing needs to be turned off for variable x. Any idea hoe to do this? Thanx, Steffen |
2 answers
If you want to turn off the BuildForge preparsing, _NO_PREPARSE_COMMAND can be set on the environment (set to anything) and that will bypass the Build Forge parsing. Alternatively you can double up the $, like $$x, then Build Forge will interpret it down to $x, leaving the rest to the shell.
~Spencer
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.