0
votes

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?

1

1 Answers

2
votes

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