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
