jenkins参数化构建(可以选择gitlab项目分支进行构建)

 

 

用到该插件 Extended Choice Parameter

 

jenkins参数化构建(可以选择gitlab项目分支进行构建)

 

用到的函数语句为:

def gettags = ("git ls-remote -h http:[email protected]/xxxx-server/dms.git").execute()
gettags.text.readLines().collect { it.split()[1].replaceAll('refs/heads/', '') }.unique()

 

相关文章:

  • 2021-06-26
  • 2022-01-18
  • 2021-09-27
  • 2022-12-23
  • 2021-09-27
  • 2021-07-06
  • 2022-12-23
  • 2021-08-26
猜你喜欢
  • 2021-07-23
  • 2021-06-01
  • 2022-02-08
  • 2021-07-18
  • 2021-06-27
相关资源
相似解决方案