Skip to content

Instantly share code, notes, and snippets.

@stanislavhordiyenko
Last active July 12, 2017 00:07
Show Gist options
  • Save stanislavhordiyenko/043bf3fcf4fe2b2a0eaac682c85f4712 to your computer and use it in GitHub Desktop.
Save stanislavhordiyenko/043bf3fcf4fe2b2a0eaac682c85f4712 to your computer and use it in GitHub Desktop.
Below there are two examples how to trigger a new build in TeamCity with parameters

In the command line:

$ curl -X POST -u username:password -d  '<build><buildType id="<build type id in teamcity>"/><comment><text>Build was triggered by curl.</text></comment><properties><property name="<parameter name>" value="<parameter value>"/></properties></build>' http://<teamcity host>/httpAuth/app/rest/buildQueue --header "Content-Type: application/xml" -H "Accept: application/json"

It should return JSON response. State field should have queued value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment