I’m using TeamCity with a build step to tag a certain build into SVN if I run a Custom Build with one of the flags set to true.
However, after this build has completed, I would like to automate TeamCity to pin the just-created custom build. Is this possible? I’ve read about the REST API, but I am not sure if it’s the solution.
I figured it out by using the REST API instead of utilizing the plugins.
By creating a Command Line build step using the Custom Script field, you can use cURL to effectively pin builds. There might be some modifications required to pin a build that is already running.
This curl call pins the build:
This curl call adds/edits the tags for the specific build:
Also you should make sure to install/place a curl executable on the build agent so that you can call curl as a command line tool.