我想要一个有两个参数的jenkins工作 . 第一个参数是使用GIT仓库中的分支填充的 .
在我的GIT仓库中,有一个文件目录 . 我想根据特定分支中的第一个参数填充第二个参数 .
现在,我正在使用带有Active Choices Reactive Reference Parameter的Git参数 .
这是我目前的脚本:
import groovy.io.FileType
command = "git checkout ${branch}"
command.execute()
def list = []
def dir = new File("./Integration Apps/")
dir.eachFileRecurse (FileType.FILES) { file ->
list << file
}
return list
知道如何才能完成这个吗?