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?

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks. I did see that reference earlier but how do I post my patch file?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.