Package location within powershell, non deployment step

I am trying to grab the package associated with the project via powershell.

My idea is to grab the package and make a restful call. Unfortunately everything I am seeing and trying is leading me to believe that I can only get the package if on a deployment step, which in the case isnt possible.

echo $OctopusParameters[“Octopus.Tentacle.CurrentDeployment.PackageFilePath”]

I would have thought the above would be the path to the project package?

Hi Shaun,

Thanks for reaching out, apologies for the time it’s taken for me to get back to you.

I can confirm that $OctopusParameters[“Octopus.Tentacle.CurrentDeployment.PackageFilePath”] is only accessible as part of a deployment. If you are able to provide some more context around what you are trying to achieve I may be able to assist in coming up with a solution for you.

I look forward to hearing from you shortly,

Regards,
Alex

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