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

Pass variables from scheduler?

Hi

I am implementing a Code Promotion Process (from DEV to QA to PROD) in BF. If I create a generic BF project for code promotion and schedule it at night, then I need a way to pass the application names and other variables to the project when it's started. We have different ClearCase projects for each application so the BF project need to know the application name to figure out where to get the source code.

How can I pass variables from the scheduler into the BF project? I see the environment there. So I am thinking to create a scheduler to each application using it's own environment. Is this the right approach?

Thanks
Jirong

0 votes



One answer

Permanent link
Hi

I am implementing a Code Promotion Process (from DEV to QA to PROD) in BF. If I create a generic BF project for code promotion and schedule it at night, then I need a way to pass the application names and other variables to the project when it's started. We have different ClearCase projects for each application so the BF project need to know the application name to figure out where to get the source code.

How can I pass variables from the scheduler into the BF project? I see the environment there. So I am thinking to create a scheduler to each application using it's own environment. Is this the right approach?

Thanks
Jirong


Hi,

Yes, that is an approach that I have used in some of my projects. The one thing to watch is that if you make updates to the original environment that is set on the schedule, and you want the new values of that environment to be used for the scheduled job - that you will need to 'Resync' the environment. There is a button on the schedule page and an API method for performing the resync.

Another option that I have used to alter variable values per project is by using some of the adaptor tags (ex. <setenv>) related to environment. However, this method may not work if you're not using an adaptor/adaptor link based project.

The .bset dot command might also be handy for altering the value.

bju

0 votes

Your answer

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

Question asked: Sep 01 '10, 5:04 p.m.

Question was seen: 5,000 times

Last updated: Sep 01 '10, 5:04 p.m.

Confirmation Cancel Confirm