Jenkins--->xxxx--->配置--->参数化构建过程--->选择Git Parameter Plug-In插件

  1. Name: git_branch
  2. Description:描述可以写些什么
  3. Parameter Type:选择Branch
  4. Branch Filter: .*
  5. Tag Filter: *
  6. Sort Mode: NONE
  7. Default Value: master #默认不选择的时候会使用master主干;
  8. Selected Value: DEFAULT #默认值为master

源码管理--->Git---> Branches to build

把*/master 改成:$git_branch [就是上面定义的Name值]

相关文章:

  • 2022-12-23
  • 2022-02-20
  • 2021-10-15
  • 2021-07-29
  • 2021-07-14
  • 2021-07-31
  • 2022-12-23
  • 2021-08-08
猜你喜欢
  • 2022-12-23
  • 2021-09-14
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
相关资源
相似解决方案