From 25b582538e6e7f7540a82eaa8e507b1ee8d252ce Mon Sep 17 00:00:00 2001 From: "roberto.cirillo" Date: Wed, 12 Oct 2022 15:03:51 +0200 Subject: [PATCH] add new check on smartgears-distribution component name before assign the version --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6fc8997..9bd338e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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