История изменений
Исправление barberry, (текущая версия) :
def list = [
"path=repo/dir/1.2.3-1278",
"path=path=repo/dir/1.2.3-1279",
"path=repo/dir/3.3.3-1281"
]
def versionList = []
list.each {
if (it.contains('3.3.3')){
versionList << it
}
}
versionList.each { println it }
вывод: path=repo/dir/3.3.3-1281
Исходная версия barberry, :
def list = [
"path=repo/dir/1.2.3-1278",
"path=path=repo/dir/1.2.3-1279",
"path=repo/dir/3.3.3-1281"
]
def versionList = []
list.each {
if (it.contains('3.3.3')){
versionList << it
}
}
versionList.each { println it }
вывод: path=repo/dir/3.3.3-1281