From c6ac2ca316cf5eb080b8a1da1c2b56bc94b0a7ea Mon Sep 17 00:00:00 2001 From: "roberto.cirillo" Date: Mon, 10 Oct 2022 17:30:28 +0200 Subject: [PATCH] fix collection fields --- Jenkinsfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 37a0eea..0e67d18 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -230,8 +230,10 @@ pipeline { def releaseList = [] jsonConfig.gCube_release.Components.each { group_name, component_list -> if("${group_name}" == "${DEPLOY_CATEGORY}"){ - println("found ${it.name} with version: ${it.version}"); - releaseList += "${it.name},${it.version}" + serviceName=component_list?.collect { "${it.name}" } + serviceVersion=component_list?.collect { "${it.version}" } + println("found ${serviceName} with version: ${serviceVersion}"); + releaseList += "${serviceName},${serviceVersion}" } } deployJobs(releaseList);