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