add explicit check on distribution category

This commit is contained in:
Roberto Cirillo 2022-10-12 11:03:28 +02:00
parent f3f51d1e93
commit e739de9ec3
1 changed files with 6 additions and 3 deletions

9
Jenkinsfile vendored
View File

@ -225,9 +225,12 @@ pipeline {
jsonConfig.gCube_release.Components.each { group_name, component_list ->
for ( def category : categories){
if("${group_name}" == "$category"){
smartgears = (category == 'Distribution') ? "$it.version" : ''
releaseList += component_list?.collect {return "$it.name,$it.version" }
println("found ${releaseList}");
if (category == 'Distribution'){
smartgears = component_list?.collect {return "$it.version" }
}else{
releaseList += component_list?.collect {return "$it.name,$it.version" }
println("found ${releaseList}");
}
}
}
}