Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run Teamcity builds through command line

I want to run a build job created in Teamcity through command line. Is it possible to run teamcity builds through command line? If yes, then what is the command for that?

like image 443
Mosam Mehta Avatar asked Oct 16 '15 11:10

Mosam Mehta


People also ask

How do you run builds in TeamCity?

To run a custom build with specific changes, open the build results page, go to the Changes tab, expand the required change, click the Run build with this change, and proceed with the options in the Run Custom Build dialog. Use HTTP request or REST API request to TeamCity to trigger a build.


1 Answers

If curl is an option you can try this http request:

curl http://<user name>:<user password>@<server address>/httpAuth/action.html?add2Queue=<build configuration Id>

Have a look for more information.

like image 99
Rob Avatar answered Nov 15 '22 10:11

Rob