Passing parmeters through REST apit to a teamcity build
Scenario:
- I have 2 powershell scripts, Script1 and Script2.
- Script1 runs on the client machine and Script2 will run on teamcity, a build is configured to run Script2
- Script 2 expects some parameters which it needs to run. These parameters would be supplied by user when he runs Script1 on his machine.
Questions
- Can i get the parmeters supplied by user when running script1 and pass that to TC build which is configured to run script2.
Thanks!
Please sign in to leave a comment.
Hi Sujit,
Yes, it is possible to run build with parameter via REST API. Please see how to perform it: https://confluence.jetbrains.com/display/TCD9/REST+API#RESTAPI-TriggeringaBuild.