To confirm that’s what I need, I added this to a build step but it doesn’t get converted to a value or empty string. It stays just like this.
Release Package: #{Octopus.Release.Package}
Any idea why I’m not able to get package information from this variable?
I also tried these but they do not work either.
ID #{Octopus.Action.Package.PackageId}
Version #{Octopus.Action.Package.PackageVersion}
Release Package: #{Octopus.Release.Package}
#{each package in Octopus.Release.Package}
This release contains #{package.PackageId} #{package.Version}
#{/each}
Thanks for getting in touch! The Octopus.Release.Package variable is only populated if build information has been pushed from your build server. Does that match your scenario?
The other variables you’ve attempted are actually output variables, so when using them in a subsequent step you need to specify the step name which populated the variables. Does the following get the correct values in your email step?
ID #{Octopus.Action[PackageStepName].Package.PackageId}
Version #{Octopus.Action[PackageStepName].Package.PackageVersion}
I hope this helps! Let me know how you go or if you have any further questions going forward.