hello!python!

jenkins 参数化构建,获取git分支

def heads= ("git ls-remote -h git@gitlab.com:*.git").execute()
def headlist=heads.text.readLines().collect{it.split()[1]};
def list=[''];
list.addAll(headlist);
return list;

posted @ 2018-01-24 15:11  你坚持了吗  阅读(1145)  评论(0编辑  收藏  举报
hello!python!