diff --git a/Jenkinsfile b/Jenkinsfile index 48dd6d0..2f24be7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -230,8 +230,8 @@ pipeline { def releaseList = [] jsonConfig.gCube_release.Components.each { group_name, component_list -> if("${group_name}" == "${DEPLOY_CATEGORY}"){ - serviceName=component_list?.each { "${it.name}" } - serviceVersion=component_list?.each { "${it.version}" } + serviceName=component_list?.each { name -> return "${it.name}"} + serviceVersion=component_list?.each { version -> return "${it.version}" } println("found ${serviceName} with version: ${serviceVersion}"); releaseList += "${serviceName},${serviceVersion}," }