Library Variable Set

Hi there,

I would like to know about creating a Variable Set, if I didn’t define the scope(environment), what will be the default variable? Thanks

Hi Peter,

Thanks for getting in touch! Octopus determines which variable value to use based on how “specific” its scope is. For example, a variable scoped to an environment is considered more specifically scoped than an unscoped variable, so a deployment to that environment will use the environment-scoped value. If no scoped values apply in the context of the deployment, then the unscoped value is used.

We have a section in our docs outlining this scoping hierarchy in more detail.

We also have a blog post discussing variable specificity and complexity. It’s a fairly old post, but the same principles apply.

I hope this helps! Let me know how you go, or if you have any further questions or concerns going forward. :slight_smile:

Best regards,


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