Reputation: 1146
I am wondering how VSTS hosted agents provisioning works in terms of state. Does a hosted agent get reassigned from one job to another without being 'snapshotted' back to a 'clean' state? Or does it carry around the remnants from previous builds?
Thanks
Upvotes: 1
Views: 151
Reputation: 38136
There won't has any data 'leakage' between different subscriptions to use Hosted agent, even you build the same build definition for twice, you can not get any data from first build to second build.
That's why Clean option is not relevant when you use Hosted agent, and you can find Clean the local repo on the agent section:
Note
Cleaning is not relevant if you are using a hosted agent because you get a new agent every time in that case.
Upvotes: 1
Reputation: 59045
Hosted agents are single-use only. They are not reused between builds.
Upvotes: 0