Создаем Active choise parametr http://joxi.ru/J2bxLajU4ay3gr
с именем MODNAME
return[ 'm2_autocomplete', 'm2lite-monitor-module', 'm2_neklo_bestsellerwidget', 'm2_neklo_birthdaycoupons', 'm2_neklo_category_featured_products', 'm2_neklo_core', 'm2_neklo_cronjob', 'm2_neklo_facebookpage', 'm2_neklo_hometabs', 'm2_neklo_instagram', 'm2_neklo_instagrampro', 'm2_neklo_lowstocknotification', 'm2_neklo_mostreviewedwidget', 'm2_neklo_mostviewedwidget', 'm2_neklo_mostwishfulwidget', 'm2_neklo_productposition' ]
Используем это им я в следующем шаге Active choise reactive parametr http://joxi.ru/a2XlPGviyOdNG2
String jobWorkspace = "git@bitbucket.org:neklollc/${MODNAME}.git" def buildNumbers = [] def command = "/var/lib/jenkins/scriptler/scripts/fetch_branches_remote.sh " + jobWorkspace def proc = command.execute() proc.waitFor() proc.in.eachLine { line -> buildNumbers.add(line) } return buildNumbers
Обязательно указать Referenced parameters
0 Comment