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

How can I invoke a Build Forge build project on the correct server?

 I'm trying to write a Build Forge project that will clean up some extra files not normally done by the purge routine. I see that I can chain to project and have that do the work. Using this I can see two approaches, but I'm not sure how to do either. I can either get the chained project to run on the correct server (the same server as the job being purged) or run it on all servers. 

I can't figure out though how to get the server that the calling job was run on. I don't see it in the BF_CALLER fields, I do see the BF_CALLER_TAG which tells me what I need to delete, but not which server it was run on.

Alternatively I could have it run on all of the servers, but I don't see a good way to broadcast to all of the servers that would result from a selector.

Any ideas?

1 vote



2 answers

Permanent link
 the .bset command also has options for "server" and "selector" that you could execute using the BF_CALLER environment variables that a chain would inherit from the parent.  Specifically, take a look at BF_CALLER_SERVER 

You'll end up doing something like:
    .bset server $BF_CALLER_SERVER


1 vote


Permanent link
 Hey, Scott. 

Not sure if this is what you are looking for, but there is a "Sticky" option you can set for a project. This will make it so that all parts of a project will run on the same server. Here is a link for the Sticky Process.

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: Aug 06 '13, 11:46 a.m.

Question was seen: 5,258 times

Last updated: Aug 07 '13, 4:46 p.m.

Confirmation Cancel Confirm