From f55bc0881ce357178ccf5e2ca441d616b11af5b2 Mon Sep 17 00:00:00 2001 From: "roberto.cirillo" Date: Tue, 11 Oct 2022 09:28:05 +0200 Subject: [PATCH] small fix --- Jenkinsfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3906cea..19c8e79 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -230,11 +230,13 @@ pipeline { def releaseList = [] jsonConfig.gCube_release.Components.each { group_name, component_list -> if("${group_name}" == "${DEPLOY_CATEGORY}"){ - serviceName=component_list.each{ println("${it.key}")} + + releaseList=component_list.each{ key, value -> return "${it.name},${it.version},"} // serviceName="${it.name}" - serviceVersion=component_list?.each { name -> return "${it.version}"} - println("found ${serviceName} with version: ${serviceVersion}"); - releaseList += "${serviceName},${serviceVersion}," +// serviceVersion=component_list?.each { name -> return "${it.version}"} +// println("found ${serviceName} with version: ${serviceVersion}"); +// releaseList += "${serviceName},${serviceVersion}," + println("list content: ${releaseList}") } } deployJobs(releaseList);