add new check on smartgears-distribution component name before assign

the version
This commit is contained in:
Roberto Cirillo 2022-10-12 15:03:51 +02:00
parent 8f1fd22867
commit 25b582538e
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -228,7 +228,7 @@ pipeline {
if("${group_name}" == "$category"){
if (category == 'Distribution'){
//smartgears = true
def sg= component_list?.collect{ return "$it.version" }
def sg= component_list?.collect{ if ("$it.name" == 'smartgears-distribution'){ return "$it.version" }}
smartgears=(sg !=null ) ? sg[0] : null
println("smartgears version is ${smartgears}")
continue