generated from gCubeCI/Pipeline-Docker-Template
try to add the smartgears version to the var
This commit is contained in:
parent
3c6da95e7a
commit
c1aeb43300
|
@ -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" }
|
||||
|
|
Loading…
Reference in New Issue