Recently (November 2019) the
ScopeSpecification.Rank() method in
Octopus.Client was flagged as deprecated. The linked documentation in the deprecation message doesn’t do a good job of explaining what I can use to replace it.
We have logic to look at the variables, determine which ones might apply (based on environment/step/roles), and then sort by
ScopeSpecification.Rank() to determine which value will be applied when deploying
Does Octopus have an API I can call to determine what a variable value will be for a given step/machine/environment at deploy time? If not, how am I supposed to replace the
Rank() call to determine this?