You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add mechanism to more easily download a build artifact #24081
As a tester, I want to download an already built version of PowerShell from a PR instead of having to rebuild it locally, to save time in testing a feature that hasn't yet been merged into main and therefore not in a daily build (when they are working again)
This already exists. If you open one of the PRs on GitHub and scroll down to the workflow runs you will see that there's a build task for each platform, Windows for example has the name PowerShell-CI-windows (Build for Windows Windows Build) if you click on details -> View more details on Azure Pipelines you will be sent to a summary page that looks like this: if you click on the "3 artifacts" link you will get to a page like this:
where you just click on the 3 dots and select download artifacts.
I know this way already exists and have used it in multiple other projects for over 5 years now. That said, it is both too many steps and hidden away for many, and also in my multiple attempts today failed, to download the artifact, whereas if it was a feed that could be subscribed to then it's much more accessible, saves time and is much easier to automate, further saving valuable time and effort.
It's a suggestion, of something that I would myself work on the process to publish, along with a clean up process that only keeps x Amount of builds for x days and is on merge of the PR schedules a removal after x days too, to minimize cost and maintainance overhead of this if it were by the team & community thought would be of use & is used in other projects already often with bot notification of here's a download link for the build artifcat.
Okay. It wasn't clear if you knew about this feature or not, since you talked about having to build things locally. I agree that the UX kinda sucks so if you think you can make it better then I have no problem with that.
I could have added about that method, and perhaps should have but also was in a rush to get it raised, though it's also good that you've pointed that out for others too, incase they didn't know. I mentioned about building locally as this can also be useful if there is a push to help get a PR that's stuck though via methods like pair or mob programming especially if it's on things like adding tests, which seems to be where many PR authors can find thier PR's being stuck or going stale for months at a time.
This doesn't need committee to review. As noted, there is a way to do it navigating through the AzDevOps GUI. I would think there's also a way to find the download link via a REST API. If someone can figure out that, then we need a way to automatically attach that link to the PR.
After lots of searching and trial and error & eventually finding the right GH API's to return the correct info that then allows for querying the AzDO API's, I managed to get a working function the end of last week. Will update by end of the week & have assigned this to me for now.
Am closing this as I released the BuildDownloader Repo which has commands that help in the downloading of Azure DevOps Build artifacts linked to a GitHub PR
Activity
MartinGC94 commentedon Jul 24, 2024
This already exists. If you open one of the PRs on GitHub and scroll down to the workflow runs you will see that there's a build task for each platform, Windows for example has the name
if you click on the "3 artifacts" link you will get to a page like this:

PowerShell-CI-windows (Build for Windows Windows Build)if you click on details -> View more details on Azure Pipelines you will be sent to a summary page that looks like this:where you just click on the 3 dots and select download artifacts.
kilasuit commentedon Jul 24, 2024
I know this way already exists and have used it in multiple other projects for over 5 years now. That said, it is both too many steps and hidden away for many, and also in my multiple attempts today failed, to download the artifact, whereas if it was a feed that could be subscribed to then it's much more accessible, saves time and is much easier to automate, further saving valuable time and effort.
It's a suggestion, of something that I would myself work on the process to publish, along with a clean up process that only keeps x Amount of builds for x days and is on merge of the PR schedules a removal after x days too, to minimize cost and maintainance overhead of this if it were by the team & community thought would be of use & is used in other projects already often with bot notification of here's a download link for the build artifcat.
MartinGC94 commentedon Jul 24, 2024
Okay. It wasn't clear if you knew about this feature or not, since you talked about having to build things locally. I agree that the UX kinda sucks so if you think you can make it better then I have no problem with that.
kilasuit commentedon Jul 24, 2024
I could have added about that method, and perhaps should have but also was in a rush to get it raised, though it's also good that you've pointed that out for others too, incase they didn't know. I mentioned about building locally as this can also be useful if there is a push to help get a PR that's stuck though via methods like pair or mob programming especially if it's on things like adding tests, which seems to be where many PR authors can find thier PR's being stuck or going stale for months at a time.
SteveL-MSFT commentedon Jul 31, 2024
This doesn't need committee to review. As noted, there is a way to do it navigating through the AzDevOps GUI. I would think there's also a way to find the download link via a REST API. If someone can figure out that, then we need a way to automatically attach that link to the PR.
kilasuit commentedon Aug 20, 2024
After lots of searching and trial and error & eventually finding the right GH API's to return the correct info that then allows for querying the AzDO API's, I managed to get a working function the end of last week. Will update by end of the week & have assigned this to me for now.
kilasuit commentedon Aug 26, 2024
kilasuit commentedon Sep 20, 2024
kilasuit commentedon Jan 26, 2025
Am closing this as I released the BuildDownloader Repo which has commands that help in the downloading of Azure DevOps Build artifacts linked to a GitHub PR