build step间传递变量
插件
EnvInject plugin插件
配置
Configure System
- 点击
Manage Jenkins - 选择
Configure System - 查找
Global properties - 勾选
Prepare jobs environment - 设置
SCM结帐后注入变量
- 进入
job页面 Build Environment- 勾选
Inject environment variables to the build process或Inject passwords to the build as environment variables
build step注入变量
job页面Build- 点击
Add build step - 选择
Inject environment variable
官方文档
job间传递变量
插件
Parameterized Trigger Plugin插件
配置
- 进入
job页面 Post-build Actions- 点击
Add post-build action - 选择
Trigger parameterized build on other projects

官方文档
据条件判断来决定是否触发下一个Job
插件
Flexible Publish Plugin