tag:help.appveyor.com,2012-11-13:/discussions/questions/23888-share-resources-between-jobsAppVeyor: Discussion 2018-10-08T21:00:37Ztag:help.appveyor.com,2012-11-13:Comment/458446512018-08-05T19:49:03Z2018-08-05T19:49:03ZShare resources between jobs<div><p>Hey.</p>
<p>I am thinking of having the first job to build the module (PowerShell - using <code>invoke-Build</code>) and having all other jobs not build it - but use the result of the first job.<br>
I am considering using the <code>Push-AppveyorArtifact</code> command (where is this documented, btw? I am interested if it takes a pipeline) and have all other jobs download the artefacts (using the REST API).</p>
<p>Is there an easy way to do this?</p></div>olivertag:help.appveyor.com,2012-11-13:Comment/458446512018-08-06T05:10:54Z2018-08-06T05:10:54ZShare resources between jobs<div><p>Sounds like a reasonable plan, though i'm not sure there is any 'easier way' than what you described.</p>
<p>I believe that <code>Push-AppveyorArtifact</code> accepts pipeline input by value but not by property.<br>
You can see examples of that <a href="https://www.appveyor.com/docs/packaging-artifacts/#pushing-artifacts-from-scripts">here in the docs</a>.</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/458446512018-08-06T06:46:35Z2018-08-06T06:46:35ZShare resources between jobs<div><p>I saw that docs page. I was hoping to see the <code>Get-Help</code> of the command without having to stop a build and RDP into the machine.</p>
<p>Is there an Appveyor cmdlet for downloading artifacts?</p></div>olivertag:help.appveyor.com,2012-11-13:Comment/458446512018-08-08T05:24:09Z2018-08-08T05:24:09ZShare resources between jobs<div><p><a href="https://www.appveyor.com/docs/build-worker-api/#push-artifact">This</a> (which is also linked to from previous link) is the closest to <code>Get-Help</code> available.</p>
<p>And from the <a href="https://www.appveyor.com/docs/api/">api docs</a> you'll find two examples for downloading artifacts.</p>
<p>There is no built in cmdlet yet but it is something that is being worked on as part of some other improvements.</p></div>Owen McDonnell