replace continue with return

This commit is contained in:
Roberto Cirillo 2022-10-12 15:31:47 +02:00
parent 1a38859d7d
commit 6ed0bbb978
1 changed files with 3 additions and 3 deletions

6
Jenkinsfile vendored
View File

@ -226,12 +226,12 @@ pipeline {
jsonConfig.gCube_release.Components.each { group_name, component_list ->
for ( def category : categories){
if("${group_name}" == "$category"){
if (category == 'Distributions'){
if (category == 'Distribution'){
//smartgears = true
def sg= component_list?.collect{ println("name : $it.name"); println("version $it.version"); if ("$it.name" == 'smartgears-distribution'){ return "$it.version"; }}
def sg= component_list?.collect{ if ("$it.name" == 'smartgears-distribution'){ return "$it.version"; }}
smartgears=(sg !=null ) ? sg[0] : null
println("smartgears version is ${smartgears}")
continue
return
}
releaseList += component_list?.collect {return "$it.name,$it.version" }
println("found ${releaseList}");