Get name of deployed package

How to get a name of a packege deployed in a previous step?

My process has to two steps:

  1. deploy a package
  2. use deployment directory path + name and extension of the package

I tried to use variables which are being offered. For directory I get proper value but not for file name.
#{Octopus.Action[Deploy Package].Output.Package.InstallationDirectoryPath}
#{Octopus.Action[Deploy Package].Output.Package.FileName}

Please advice

Hi @radovan.jurtik,

Thanks for reaching out. Can you please try the following variable? Octopus.Action[Deploy a Package].Package.PackageId

You can turn on variable logging to see which variable stores the information you need. Only use it for debugging purposes as it will cause bloated log files and potentially slow down your deployments. How to turn on variable logging and export the task log - Octopus Deploy

Please let me know how it goes.


Hi @jeremy.miller ,

Variable logging helped me. I found what I was looking for.

Thank you!

1 Like

Hi @radovan.jurtik,

You’re very welcome! Thanks for letting me know.

I hope you have a great rest of your week.


This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.