Reputation: 6083
I'm developing VSTS plugin in Javascript. As part of it, I need to build and run a task on any agent.
The flow is: Run build -> Wait the build to finish -> Click on a button -> Another different task is built and run.
I found a build REST client that create build definitions and queue builds.
I didn't find any examples nor any detailed documentation. Does anyone have a simple example that creates and runs a new build definition using that build REST client?
Upvotes: 0
Views: 79
Reputation: 30442
There's already such extensions to queue/trigger build tasks in Marketplace.
You can refer to below link to get the extensions:
If you want to develop your own extension, then you can reference the source code of the extension Trigger Build Task on GitHub
Upvotes: 1