microsoft / VSTSAgent.PowerShell

Tools for managing and automating your Azure DevOps Agents.
MIT License
29 stars 23 forks source link

Support work folders, improve agent info scraping #12

Closed jwittner closed 5 years ago

jwittner commented 5 years ago

This allows specifying a directory where the agent should perform it's work separate from where it is installed.

To test and compare the work folder I had to crack the .agent metadata file. To ease comparisons I've moved to a ServerUrl and not an Account value. This is more flexible and matches the underlying tooling better as well.

Found that the .service metadata sits alongside .agent and I now use that to find the service by name instead of assuming a convention.

Added implementation for uninstalling the agent when 'Absent' is specified.

Resolves #11