Pass values between jobs steps (#29391) · Issues · GitLab.org / gitlab-runner · GitLab
Proposal Enable users to set a script-level environment variable that can then be passed to other stages in the pipeline.