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 {
|
steps {
|
||||||
script{
|
script{
|
||||||
|
if("${DEPLOY_CATEGORY}"){
|
||||||
println("Going to deploy the Release components")
|
println("Going to deploy the Release components")
|
||||||
def releaseList = []
|
def releaseList = []
|
||||||
|
def categories="${DEPLOY_CATEGORY}".split(',')
|
||||||
jsonConfig.gCube_release.Components.each { group_name, component_list ->
|
jsonConfig.gCube_release.Components.each { group_name, component_list ->
|
||||||
if("${group_name}" == "${DEPLOY_CATEGORY}"){
|
for ( def category ; categories){
|
||||||
releaseList += component_list?.collect {return "$it.name,$it.version" }
|
if("${group_name}" == "${DEPLOY_CATEGORY}"){
|
||||||
println("found ${releaseList}");
|
releaseList += component_list?.collect {return "$it.name,$it.version" }
|
||||||
|
println("found ${releaseList}");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
deployReleaseJobs(releaseList);
|
deployReleaseJobs(releaseList);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue