From c1aeb4330082703028615207060983da669e164a Mon Sep 17 00:00:00 2001 From: "roberto.cirillo" Date: Wed, 12 Oct 2022 14:18:50 +0200 Subject: [PATCH] try to add the smartgears version to the var --- Jenkinsfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f776cf4..233466c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -220,13 +220,17 @@ pipeline { if("${DEPLOY_CATEGORY}"){ println("Going to deploy the Release components") def releaseList = [] - boolean smartgears +// boolean smartgears + def smartgears def categories="${DEPLOY_CATEGORY}".split(',') jsonConfig.gCube_release.Components.each { group_name, component_list -> for ( def category : categories){ if("${group_name}" == "$category"){ if (category == 'Distribution'){ - smartgears = true + //smartgears = true + smartgears= component_list?.collect{ return "$it.version" } + smartgears (smartgears !=null ) ?smartgears[ 0 ] : null + println("smartgears version is ${smartgears}") continue } releaseList += component_list?.collect {return "$it.name,$it.version" }