Reputation: 7814
I used to use Jenkins for CI and could trigger a job via the REST api.
I'm currently using TeamCity 8 and want to try and do the same thing...
I can find the build configuration I want using
http://teamcity.url/httpAuth/app/rest/buildTypes/id:MyInterestingJob
Is it possible to run that Build configuration?
Upvotes: 0
Views: 2275
Reputation: 3704
Yes, but only since version 8.1 and up
You need to send a POST to the http://teamcity.url/httpAuth/app/rest/buildQueue endpoint with the build node as the content.
e.g. POST this XML
<build>
<buildType id="MyInterestingJob"/>
</build>
Hope this helps
Upvotes: 2