It's all about the answers!

Ask a question

How can use $BF_PROJECTNAME in the build tag?


Jirong Hu (1.5k9295258) | asked Aug 23 '10, 9:31 a.m.
Hi

I set project build tag as follows but it's not working, any idea?

${BF_PROJECTNAME}_Build_$B became BF_PROJECTNAME_Build_1. I tried adding another $, still not working.

Thanks
Jirong

2 answers



permanent link
Brent Ulbricht (2.5k11) | answered Aug 23 '10, 10:41 a.m.
JAZZ DEVELOPER
Hi

I set project build tag as follows but it's not working, any idea?

${BF_PROJECTNAME}_Build_$B became BF_PROJECTNAME_Build_1. I tried adding another $, still not working.

Thanks
Jirong


Hi Jirong,

Due to the hierarchy of variable resolution, the BF_PROJECTNAME is not available at the time the tag is created. The available system defined variables for use in
the tag are B, BF_D, BF_ENGINE, BF_J, BF_T, and BF_W. For more information check the docs trail: Working with projects -> Defining Tags -> System-defined variables for tags.

There is another option though. You can use the .retag dot command. If you add the following statements to an existing or new step, you will rename the tag and BF_PROJECTNAME is available.

.retag ${BF_PROJECTNAME}_BUILD_$B

bju

permanent link
Jirong Hu (1.5k9295258) | answered Aug 23 '10, 10:45 a.m.
Thanks a lot.

Jirong

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.