Buildforge .bset - set variable as output of OS command
I am trying to define a buildforge command where I read a text file and want to assign the second line of the file to a variable. According to Buildforge on-line help document this should be possible. But i can't seem to get it working e.g. my text file contains 2 lines
I wish to assign text from second line to a variable, so I tried .bset env "WS_VERSION_CAT[1] = `cat ${BF_ROOT}/wsVersion.txt`"
but the output I get is
409 6/10/13 7:59 PM ENV WS_VERSION_CAT[1]=Websphere Version:ws7
I was expecting the output to be just ws7
Also, how do I access this variable in next step?
Thank you
|
One answer
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.