generated from gCubeCI/Pipeline-Docker-Template
try to set more than one yaml section on env var DEPLOY_CATEGORY
This commit is contained in:
parent
fcfd5804dd
commit
de1e8cfd01
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue