Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lawrenceching/820eb4150ff98e7eb24a58e8d81d764a to your computer and use it in GitHub Desktop.
Save lawrenceching/820eb4150ff98e7eb24a58e8d81d764a to your computer and use it in GitHub Desktop.
TC_TOKEN=<Teamcity Token>
curl -X POST -H "Authorization: Bearer $TC_TOKEN" \
--header "Content-Type:application/xml" \
-d"
<build>
<buildType id=\"<TeamCity Build ID>\"/>
<properties>
<property name=\"<Parameter Name>\" value=\"<Parameter Value>\"/>
</properties>
</build>
" \
https://teamcity.example.com/app/rest/buildQueue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment