generated from gCubeCI/Pipeline-Docker-Template
optimize method deployRelease
This commit is contained in:
parent
eb7bf27c81
commit
b0c0011a63
|
@ -393,6 +393,8 @@ def deployRelease(def categoryList, def json){
|
||||||
String smartgears
|
String smartgears
|
||||||
def categories=categoryList.split(',')
|
def categories=categoryList.split(',')
|
||||||
json.gCube_release.Components.each { group_name, component_list ->
|
json.gCube_release.Components.each { group_name, component_list ->
|
||||||
|
if (categories.contains(group_name)){
|
||||||
|
println("found category "+group_name+" it is contained in categories to search: "+categories);
|
||||||
for ( def category : categories){
|
for ( def category : categories){
|
||||||
println ("processing category: "+category)
|
println ("processing category: "+category)
|
||||||
if("${group_name}" == "$category"){
|
if("${group_name}" == "$category"){
|
||||||
|
@ -406,6 +408,8 @@ def deployRelease(def categoryList, def json){
|
||||||
releaseList += component_list?.collect {return "$it.name,$it.version" }
|
releaseList += component_list?.collect {return "$it.name,$it.version" }
|
||||||
println("found ${releaseList}");
|
println("found ${releaseList}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
deployReleaseJobs(releaseList, smartgears);
|
deployReleaseJobs(releaseList, smartgears);
|
||||||
|
|
Loading…
Reference in New Issue