microsoft / VSTSAgent.PowerShell

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

Add Agent version parameter and GitHub API for finding releases #36

Open jmiller-afw opened 1 year ago

jmiller-afw commented 1 year ago

Adding new parameter to xVSTSAgent to allow for selection of which version of the agent to install. The script is currently uses the most recent version, which is currently broken because the links for v3.212.0 are dead links. This update allows the user to select a known good version for download.

jmiller-afw commented 1 year ago

This pull request has a couple of new and needed enhancements.

  1. Find-VSTSAgent now uses Github api to find the needed agent rather than attempting to scrape the html of the releases page.
  2. Adds a parameter that allows the selection of a specific version of the agent
  3. fixes issue #17 by using System.Net.WebClient for all api and download requests