diff --git a/Jenkinsfile b/Jenkinsfile index a2da86e..6682cda 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -217,15 +217,20 @@ pipeline { } steps { script{ + if("${DEPLOY_CATEGORY}"){ println("Going to deploy the Release components") def releaseList = [] + def categories="${DEPLOY_CATEGORY}".split(',') jsonConfig.gCube_release.Components.each { group_name, component_list -> - if("${group_name}" == "${DEPLOY_CATEGORY}"){ - releaseList += component_list?.collect {return "$it.name,$it.version" } - println("found ${releaseList}"); + for ( def category ; categories){ + if("${group_name}" == "${DEPLOY_CATEGORY}"){ + releaseList += component_list?.collect {return "$it.name,$it.version" } + println("found ${releaseList}"); + } } } deployReleaseJobs(releaseList); + } } } }