How do I download artifacts built in one job to test in other jobs?
I have a build for a PowerShell module that produces two build outputs: a .zip file and a .nupkg file. I need to build these outputs in a job on the latest build image (Visual Studio 2022), but then download and test the build outputs on other jobs running tests on different combinations of PowerShell and OS combinations.
How do I get the build output from one job onto the servers running the tests against that build output?
My module needs to run on Windows PowerShell 5.1 and .NET 4.6.2, but it can't build on the Visual Studio 2015 image because it needs to target .NET standard, which isn't possible on that image.
My current appveyor.yml file is atttached.
- appveyor.yml 3.49 KB
Comments are currently closed for this discussion. You can start a new one.
|?||Show this help|
|ESC||Blurs the current field|
|r||Focus the comment reply box|
|^ + ↩||Submit the comment|
You can use
Command ⌘ instead of
Control ^ on Mac
Support Staff 1 Posted by Feodor Fitsner on 12 Jan, 2023 06:44 PM
You can download artifacts from any build job using AppVeyor REST API. Here's an example for PowerShell: https://www.appveyor.com/docs/api/samples/download-artifacts-ps/. I also have an example in Python if you need it.
Any version of .NET Core can be installed with PowerShell during the build: https://github.com/appveyor/build-images/blob/master/scripts/Window...
Let me know if you have any questions.
2 Posted by splatteredbits on 12 Jan, 2023 08:30 PM
I'd like to see this as a first-class part of the
appveyorcommand-line tool. I see that's a feature requested here: https://github.com/appveyor/ci/issues/1857 . Please implement!
Also, where is the
appveyorcommand line tool documented? I can't find it.
Support Staff 3 Posted by Feodor Fitsner on 12 Jan, 2023 08:31 PM
It's documented here: https://www.appveyor.com/docs/build-worker-api/
Feodor Fitsner closed this discussion on 14 Mar, 2023 09:03 PM.