Run a build from plugin

I want to run a build from a plugin, how would I go about doing that ?

  To clarify I do not want to run personal build.  I want to run a build just as you would do from hitting the Run button on the main page on the TeamCity server for a specific project.  I do know the build configuration ID, I do not care which build agent to use, at least not for now.


1 comment
Comment actions Permalink

Take a look at SBuildType::addToQueue() method, you should place build configuration in the queue and build will start when agent become idle.


Please sign in to leave a comment.