Shared Library for Jenkins Pipeline
- 关于Shared Library的更多信息请参考Using libraries
- 如
/data/jenkins/config/settings.groovy
- 确保 Jenkins 运行用户有读取此文件的权限
- -> Manage Jenkins
- -> Configure System
- -> Global properties
- Create new one
- Name:
SETTINGS
- Value:
/data/jenkins/config/settings.groovy
- Name:
- -> Configure System
- 具体
settings.groovy
路径请以本地环境配置为准
BUILD_USER & BUILD_USER_ID 需要 build user vars 插件