optimize method deployRelease

This commit is contained in:
Roberto Cirillo 2022-10-13 10:40:28 +02:00
parent eb7bf27c81
commit b0c0011a63
1 changed files with 15 additions and 11 deletions

4
Jenkinsfile vendored
View File

@ -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);