Editorial question128.9K views3,944 votes0 answers2,893 following
AI-generatedStage-level environment variable missing in later Declarative Pipeline stages
Determine whether a variable defined in a stage‑level environment block of a Jenkins Declarative Pipeline is automatically available to stages that follow it. The inheritance of stage‑level environment settings is not explicitly documented and appears to differ between Jenkins core releases, Pipeline plugin versions, and when plugins such as EnvInject or Con