Hello,
we would like to use in build step script a variable describing if the Octopus server is in Maintenance mode. I was not able to find it in variable list.
Does it exist? If not, is there another way to do it? Will you introduce it?
Thanks for getting in touch! I do not believe we have a specific system variable available for this. When the Octopus server is in maintenance mode you are unable to create new tasks, meaning any script to determine whether the server is in maintenance mode could not be run from the Octopus server.
If you are perhaps trying to execute this against another Octopus server instance, you will be able to retrieve this data via the API.