From dd691f73c94f8065bbd51582575bb5f25e25687f Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Fri, 16 Jun 2023 08:56:40 +0200 Subject: [PATCH] add check on group_id just for test --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1448eda..04db713 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -368,7 +368,7 @@ def deployRelease(def categoryList, def yaml){ }else if (category =="${PORTLET_CATEGORY}"){ //def portlets="{\"generic_portlets\": "; // portlets += component_list?.collect{ return [ 'name': "$it.name", 'version': "$it.version", 'extension': 'war' ] } - portlets += component_list?.collect{ return " {\"name\": \"$it.name\", \"version\": \"$it.version\", \"extension\": \"war\"} "} + portlets += component_list?.collect{ return " {\"group_id\": \"${it.group} ?: \"org.gcube.portlets.user\"\", \"name\": \"$it.name\", \"version\": \"$it.version\", \"extension\": \"war\"} "} echo "portlets: $portlets" def jsonContent= "{\"generic_portlets\": "+portlets+"}" echo "json: $jsonContent"