Jenkins 动态参数 - 获取git仓库分支列表

版权声明:***本文为博主原创文章,未经博主允许不得转载。*** https://blog.csdn.net/rrrrrr123rrr/article/details/83311079

Jenkins 动态参数 - 获取git仓库分支列表

  • Dynamic Choice Parameter
'git ls-remote --refs [email protected]:AndroidGroup/resp.git'
.execute().text.readLines().collect { it.split('/')[2] }

猜你喜欢

转载自blog.csdn.net/rrrrrr123rrr/article/details/83311079