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?
|
2 answers
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
|
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.
|
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.