try to add the smartgears version to the var

This commit is contained in:
Roberto Cirillo 2022-10-12 14:18:50 +02:00
parent 3c6da95e7a
commit c1aeb43300
1 changed files with 6 additions and 2 deletions

8
Jenkinsfile vendored
View File

@ -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" }