I’m busy with the ‘deploy a release’ step and output variablen.
I have a Project IAM and a Project ActoProject. ActoProject is the master project and it has a step ‘deploy a release’ which starts a deployment of the IAM project.
The IAM project sets an output variable ‘RestoreStatus’ in step ‘Testing’:
Set-OctopusVariable -name ‘RestoreStatus’ -value “Succes”
In the master Project ActoProject i’m able to retrieve this variable with:
$Status = $OctopusParameters[‘Octopus.Action[Deploy an IAM release].Output.Deployment[Testing].RestoreStatus’]
But if the deployment of the IAM project fails, I don’t receive any variable. It stays empty.
I would like also in these failing situations to receive the contents of the variable, because with these I will be able to setup the correct restore procedures.
Is it possible to recieve variable from a failing deployment?