Passing artifacts between steps

In Octopus Server that’s possible to set variable and read it in next steps - https://octopus.com/blog/fun-with-output-variables
There’s also possible to generate artifacts - https://octopus.com/docs/deployment-process/artifacts
But I can’t find any information about getting these artifacts in consecutive steps. Is it possible?

Hi @rafal.gapski,

Thanks for getting in touch!

There isn’t currently any built-in method to retrieve artifacts for use in later steps. The use case for this feature was to collect log files and such for later review so the functionality to access them with deployment steps was never added.

You could perhaps script something to access the Octopus API and download the desired artifacts.

This sample script retrieves all artifacts for the desired deployment. It could perhaps be modified for what you need.

Regards,
Paul

The script you’ve posted looks very promising, I think this is all I need for now, thank you :slight_smile:

1 Like