Using environment variables (Jenkins)
https://www.jenkins.io/doc/pipeline/tour/environment/
groovyで
environment { }
Environment variables can be set globally, like the example below, or per stage.
IMO:exportコマンドと同じと理解した