BuildForge, how to set different values in each thread?
![](http://jazz.net/_images/myphoto/ac37cd0f817302f1db6c1f7282660abb.jpg)
My purpose is like this: based on a variable, I want to run an Inline library (has two steps) on the target servers. If the variable is "y,y,n,n", I want the library runs on server1 and server2.
I created the project as follows, each "Run on * Server" includes the inline library. I tried to run the .bset selector both in the thread step or inside the inline, seems the server value is overwritten each other in threads. How can I make sure each thread is running on the right server?
P.S. the .bset env "APP_BANNER=n,y,n,n" is to reset the value to enable K only. The original value is "y,y,h,h", means need to run the library on H and K server.
![](https://jazz.net/forum/upfiles/project_1.png)
Accepted answer
![](http://jazz.net/_images/myphoto/ac37cd0f817302f1db6c1f7282660abb.jpg)
The .bset selector will affect the entire build. So the current configuration will create a race condition between the steps. If you want to set it differently you would need to chain the project to make sure each thread project then gets its own stack.
~Spencer
But I would still say that a broadcast step with a selector tailored to the pool of servers you want to run the steps on would be the easier cleaner solution.
~Spencer
Comments
![](http://jazz.net/_images/myphoto/ac37cd0f817302f1db6c1f7282660abb.jpg)
Will change to .tset resolve the problem? The doc says the inline project steps will all be run inside the same command property of the calling project.
![](http://jazz.net/_images/myphoto/ac37cd0f817302f1db6c1f7282660abb.jpg)
The doc says the following for inline project:
When the step runs, the following happens:
- The step runs the command or commands in the Command property.
- The step runs the steps of the project or library that is specified in the Inline property.
![](http://jazz.net/_images/myphoto/ac37cd0f817302f1db6c1f7282660abb.jpg)
How to chain the projects in my case?
![](http://jazz.net/_images/myphoto/ac37cd0f817302f1db6c1f7282660abb.jpg)
The chained project works. Now I am going to try the broadcast solution you've told me in another post. Thanks a lot!