My project deploys a release with multiple packages. For a specific package, for example package X, near the end of the deployment in a PowerShell script step, I need to get the package version of X deployed in the prior step (same deployment). Our TeamCity build server publishes the build information for package X. I attempted to get the version of X deployed using:
$xVer = $OctopusParameters["Octopus.Release.Package[X].Version"]
However, this did not return anything.
Please advise as to how I can retrieve the version of package X deployed in a prior step.