$OctopusParameters['Octopus.Deployment.PreviousSuccessful.Id'] not always returned

Hi ,

I use $OctopusParameters[‘Octopus.Deployment.PreviousSuccessful.Id’] built in system variable but sometimes it’s not getting populated

$lastid = $OctopusParameters[‘Octopus.Deployment.PreviousSuccessful.Id’]

I get returned … Last id =

yet for the same project but the previous release i got

Last id = Deployments-2417

Is there a reason this value could be hit and miss getting returned?

would calling $OctopusParameters[‘Octopus.Deployment.PreviousSuccessful.Id’] a second time possibly have a different outcome ?

Thanks

kris

Hi Kris,

What version of Octopus are you running? We fixed an issue with that variable in 3.8.1.

Regards,

Robert W