Hello Octopus deploy,
I am trying to create a new release of a master project by using octo.exe
The master project which contains a step to deploy a subproject with ‘Deploy a release from project …’
Of this project I have the following releases:
• Master project – rel=1.10
• Subproject – rel=2.5
and
• Master project – rel=1.20
• Subproject – rel=2.7
Now I want to create a new Master project release 1.11 with subproject release 2.5
I am doing this with powershell and octo.exe
When I start I know the version of the Master project but I do not know the version of the subproject.
I have used the API: ProjectDeploymentProcessSnapshot and I see in there the name of the deployed subproject, but I do not see how to get from there to the releasenumber of the subproject.
Output of $ProjectDeploymentProcessSnapshot.steps.actions.packages looks like
Id : ba430ab0-1592-4ec0-900b-b4f909ebb15f
Name :
PackageId : Projects-484
FeedId : feeds-builtin-releases
AcquisitionLocation : NotAcquired
Properties :
and PackageId: Project-484 is the ID of my subproject. But where can I find the Releasenumber (or releaseid) ?
Can you help me?