Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Why do I need to define environment variables in BF?

1. We can create environment variables for a BF project, e.g. SERVER.
2. Then in a step we can do: .bset env "SERVER=test"

I know there are .bset .tset and .set: http://pic.dhe.ibm.com/infocenter/bldforge/v7r1m3/topic/com.ibm.rational.buildforge.doc/topics/steps_jobdata_vars__top.html

A step can also access system environment variables directly like $ENV{'SERVER'}, so we can do a $ENV{'SERVER'}=test, right? Is it same as .set? 

In my case, I have a Perl script to remotely launch a BF project, so I can set all environment variables in my Perl before launch BF project, and then access them inside the BF project step by using $ENV{'SERVER'} approach, so I don't need to define any environment variables in BF project. So I don't need to call function like: updateBuildEnvEntryValue() to set the project envs? Am I right?

The reason is I have a long list of envs (20) to set before launch the BF project, and I found so many updateBuildEnvEntryValue() takes a lot time to run. SO I am thinking about set one long name/value pair string into BF's environment variable then parse it at a BF step.

Thanks
Jirong

0 votes


Be the first one to answer this question!

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,034

Question asked: Jul 25 '14, 10:47 a.m.

Question was seen: 4,349 times

Last updated: Jul 25 '14, 11:27 a.m.

Confirmation Cancel Confirm