We have a requirement to list down all the latest releases for all the environments and then to list down the packages that are included in the deployment.
We are able to list down all the latest releases with
.\Octo.exe -list-deployments -server $env:OctopusURL -apiKey $env:OctopusAPIKey -environment “” -tenant “” -project $prj -number=1
But not sure how we can get the packages list.
The same command gives the packages list but it gives the versions in this format
*Process step name eg: *
Package Versions: Deploying My_Application 4.2.6
where we need the same in this format
*Package Name eg: *
I already checked few threads like List packages for a Release
But these scripts has to be executed either from the same release which uses these packages.
Please let me know if you have any method to get using Octo.exe or using some other powershell scripts.