It's all about the answers!

Ask a question

Execute step on different servers based on condition


Jirong Hu (1.5k9295258) | asked Oct 25 '12, 3:19 p.m.
Based on an environment variable, I want a step to be executed on different servers (development, test and production for the deployment). What's the best solution to do this?

Thanks
Jirong

Accepted answer


permanent link
Bruce Albrecht (6624) | answered Oct 26 '12, 12:42 p.m.
The way we do it is to set an environment variable with the server name, followed by this step:

.bset server ${Target_Host}

and then the step that needs to be executed on different servers runs on the default selector.
Jirong Hu selected this answer as the correct answer

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.