0

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?

Sandeep Singh Rawat
  • 1,637
  • 1
  • 14
  • 27
Paul D'Ambra
  • 7,629
  • 3
  • 51
  • 96

1 Answers1

2

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

Matt
  • 3,684
  • 1
  • 17
  • 19