Find Previously completed step

I am curious if there is a variable or some other means to determine what the previously completed step is.

For example, IF we have steps that are environment specific, I would like to know what step completed last.

Thanks

Hi,

This is currently not possible in Octopus, there are no variables that we expose that provide this information.

You could achieve this by using the Octopus client inside a script step to make queries against the Octopus API, but this is a bit more complex, and it is not necessarily straightforward to get that specific information out of the API.

May I ask what you are trying to achieve by finding out what the previous step was? There may be other solutions to your problem that I could help you with :slight_smile:

Regards,
Tom

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