Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

jmiller-afw
Copy link
Contributor

@jmiller-afw jmiller-afw commented Oct 25, 2022

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.

…rsion of the agent to install. The script is currently broken because the links for v3.212.0 are currently dead links
…e project releases page html

Change in Find-VSTSAgent method to not return prerelease versions of the agent
Add new xVSTSAgent parameter for GithubApiToken to allow the script to use a personal access token when calling gitHub API for rate limiting (see https://docs.github.com/en/rest/overview/resources-in-the-rest-api?apiVersion=2022-11-28#rate-limiting)
Add parameter to xVSTSAgent for the agent version number to install, an error was encountered with one of the releases being a prerelease and was getting picked up because it was the most recent version
@jmiller-afw
Copy link
Contributor Author

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 PS module failing while trying to download the VSTS agent installer #17 by using System.Net.WebClient for all api and download requests

@jmiller-afw jmiller-afw changed the title Add Agent version parameter Add Agent version parameter and GitHub API for finding releases Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant