Reputation: 247
Can anyone guide me how can i setup On-Demand VSTS agents using the VSTS Ubuntu docker image. Are there any plugins which spins up the agents when there is a new build request and destroy the agent once build is done ?
Upvotes: 3
Views: 292
Reputation: 30432
No, I don't think yo can achieve that.
Generally when you queue a build it needs an existing agent... That means select agent automatically or you need to set the demands to specify the specific agent... Otherwise the build will be failed...
But based on your description you need to deploy the agent first then use it for current build...
However you can reference below thread for removing the unused Docker containers from the registry:
Is there a VSTS build task to remove unused Docker containers from the registry?
Upvotes: 1