generated from gCubeCI/Pipeline-Docker-Template
add explicit check on distribution category
This commit is contained in:
parent
f3f51d1e93
commit
e739de9ec3
|
@ -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}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue