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
|
||||
def categories=categoryList.split(',')
|
||||
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){
|
||||
println ("processing category: "+category)
|
||||
if("${group_name}" == "$category"){
|
||||
|
@ -406,6 +408,8 @@ def deployRelease(def categoryList, def json){
|
|||
releaseList += component_list?.collect {return "$it.name,$it.version" }
|
||||
println("found ${releaseList}");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
deployReleaseJobs(releaseList, smartgears);
|
||||
|
|
Loading…
Reference in New Issue