It's all about the answers!

Ask a question

if env variable can contain new line


qiu saphen (27126039) | asked Aug 10 '11, 7:14 a.m.
Hi,
I assgin a string to an env variable, e.g.
1. aaaaaa
2. bbbbbb

but when I use ${} to get the variable value, it shows 1. aaaaaa 2. bbbbbb, it is not what I want, my question is if env variable can contain new line?
thank you!

2 answers



permanent link
qiu saphen (27126039) | answered Aug 11 '11, 10:28 a.m.
According to buildforge infocenter, the variable can only contain concatenate text.
Now I am using a clumsy method to print next line.
1)Define 10 variables in env group
2)add the 10 vars to notification template
3)excute a command and output to a file on a project's step
4)use shell command to get the line you want from the file, assign to a var with using .bset env "v1=`sed -n '2p' file`"
It's useful for me,hehe.

permanent link
Randall Beck (22413) | answered Aug 11 '11, 10:59 a.m.
Hi All,

A BF contributor has left our team. One of his Environments has this variable set:

PULLDOWN_selected_level=sidev_dyn_env:76:fc1ebd410c4e1000bd7139ad73047304:Report -general LevelView

The "Type" is "Standard Variable
The "Name" is "PULLDOWN_selected_level"
The value of "On Project" is "Suppress Display"


Can someone demystify this Env variable? Specifically, this piece:

sidev_dyn_env:76:fc1ebd410c4e1000bd7139ad73047304:

What does the :76: refer to?
I know :fc1ebd410c4e1000bd7139ad73047304: is a UUID, but what BF object does it point to?

Thanks,

--Randy

Your answer


Register or to post 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.