generated from gCubeCI/Pipeline-Docker-Template
add new check on smartgears-distribution component name before assign
the version
This commit is contained in:
parent
8f1fd22867
commit
25b582538e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue