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:
Thanks for getting in touch! The package version that’s used during execution of a step is stored as an output variable that you can retrieve in subsequent PS script steps with $OctopusParameters["Octopus.Action[StepName].Package.PackageVersion"]. You can refer to the following doc page for a full list of these variables.
I hope this helps! Let me know how you go or if you have any other questions.
So far so good. But, the project that deploys pakage X is a child project called vis ‘DEPLOY A RELEASE’ step which calls it. I’m able to get the Package X version using [“Octopus.Action[StepName].Package.PackageVersion”] in the child project. But, how do I make that available to the project steps in the parent project?