What Is a Scoped Variable?
A scoped variable is a pipeline variable bound to a specific environment or matching condition, so it is exposed only to jobs that fall within that scope. The same variable name can carry different values per environment. It lets one pipeline definition target many environments without leaking the wrong value.
Why it matters
A deploy pipeline often needs distinct credentials or endpoints per environment, such as staging versus production. Scoping a variable to an environment ensures a staging job cannot accidentally receive production secrets. It keeps a single pipeline safe to reuse across many targets.
Related guides
What Is an Environment Scope?An environment scope binds a CI setting or variable to a specific environment, so it applies only to jobs dep…
What Is a Group Variable?A group variable is a CI variable defined at the group level so every project in that group inherits it, cent…
What Is a Protected Variable?A protected variable is a CI variable exposed only to pipelines running on protected branches or tags, keepin…