Agent requirement based on runtime parameter

Hi,

I have a question regarding agent requirements based on a runtime parameter.

For example:
1 agent in NL, 1 agent in UK.

I've created a single project/plan which is triggered by url. The url contains a parameter: country. Is there a way where the agent located in the same country as specified in the url will run the project/plan?

Regards,

Ben

2 comments

Ben,

You can specify agent in the build triggering URL. See more on http://www.jetbrains.net/confluence/display/TCD3/AccessingServerfrom+Scripts
This should work for your case if you have only one agent in each country.

Other then that, I am afraid you cannot influence the agent for an individual build.

BTW, why do you need this feature?

--
Best regards,

Yegor Yarko
Project Manager
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Hi,

Thanks for your quick reply. I've asked this question because we're using a co-location which has low bandwith. So we're looking for a solution which allows us to setup single plans/projects which based on the trigger decide which agent to use. So if the trigger originated in co-location A, any agent in co-location A should run the job.

Regards,

Ben

0

Please sign in to leave a comment.