Собственно из доки да, The environment directive specifies a sequence of key-value pairs which will be defined as environment variables for all steps, or stage-specific steps, depending on where the environment directive is located within the Pipeline. Получается в 3 стейдже зафейлились до того как успели присвоить значение
Да, но почему показывается переменная не со второго стейджа а та, которая обьявленная в самом верху ?