generated from gCubeCI/Pipeline-Docker-Template
small fix
This commit is contained in:
parent
f55bc0881c
commit
b645919668
|
@ -230,13 +230,15 @@ pipeline {
|
||||||
def releaseList = []
|
def releaseList = []
|
||||||
jsonConfig.gCube_release.Components.each { group_name, component_list ->
|
jsonConfig.gCube_release.Components.each { group_name, component_list ->
|
||||||
if("${group_name}" == "${DEPLOY_CATEGORY}"){
|
if("${group_name}" == "${DEPLOY_CATEGORY}"){
|
||||||
|
// serviceName=component_list?.collect { "${it.name}" }
|
||||||
|
// serviceVersion=component_list?.collect { "${it.version}" }
|
||||||
|
releaseList=component_list.each{ list ->
|
||||||
|
return list +="it.name,it.version"
|
||||||
|
}
|
||||||
|
|
||||||
releaseList=component_list.each{ key, value -> return "${it.name},${it.version},"}
|
|
||||||
// serviceName="${it.name}"
|
|
||||||
// serviceVersion=component_list?.each { name -> return "${it.version}"}
|
|
||||||
// println("found ${serviceName} with version: ${serviceVersion}");
|
// println("found ${serviceName} with version: ${serviceVersion}");
|
||||||
// releaseList += "${serviceName},${serviceVersion},"
|
println("found ${releaseList}");
|
||||||
println("list content: ${releaseList}")
|
releaseList += "${serviceName},${serviceVersion},"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
deployJobs(releaseList);
|
deployJobs(releaseList);
|
||||||
|
|
Loading…
Reference in New Issue