How to set an environment variable programmatically in Jenkins/Hudson?
问题 I have two scripts in the pre-build step in a Jenkins job, the first one a perl script, the second a system groovy script using the groovy plugin. I need information from the first perl script in my second groovy script. I think the best way would be to set some environment variable, and was wondering how that can be realized. Or any other better way. Thanks for your time. 回答1: The way to propagate environment variables among build steps is via EnvInject Plugin. Here are some previous answers