It's all about the answers!

Ask a question

Pass variables from scheduler?


Jirong Hu (1.5k9295258) | asked Sep 01 '10, 5:04 p.m.
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

One answer



permanent link
Brent Ulbricht (2.5k11) | answered Sep 01 '10, 10:50 p.m.
JAZZ DEVELOPER
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

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.