Jenkins之注入自定义环境变量 prepare an environment for the run prepare an environment for the run,需要安装Environment Injector插件 案例一:增加普通环境变量: 首先:选择Prepare an environment for the run 第二:选择Keep Jenkins Environment Variables --> Keep Jenkins Build Variables 第三:Properties Content框内设置变量 最后:shell中旧可以获取到该变量