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" }