Declarative Pipeline environment variable precedence undocumented between top‑level and stage‑level scopes
Goal Determine the authoritative precedence rule when a Declarative Pipeline defines the same environment variable at both the top‑level environment directive and a stage‑level environment block. Constraints and uncertainty The Jenkins documentation describes inheritance but does not explicitly state which scope wins when names collide. Empirical testing acr