Receive Output variable of a failing ''Deploy a release'

(e.bosman) #1

Hi there,

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?

0 Likes

(Shane Gill) #3

Hi,

Thanks for getting in touch.

I was able to reproduce the issue you are seeing with output variables from failed children being inaccessible to the parent. I’ve created an issue here: https://github.com/OctopusDeploy/Issues/issues/5280. It has been fixed, expect it to ship shortly.

Cheers,
Shane

0 Likes

(system) closed #4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

0 Likes