From ba88a51028be2c8b7be94e9d72f0916e6a7dff25 Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Thu, 15 Jun 2023 16:13:56 +0200 Subject: [PATCH] add brackets to json creation string --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 253b75d..025b372 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 " {\"name\": \"$it.name\", \"version\": \"$it.version\", \"extension\": \"war\"} "} echo "portlets: $portlets" def jsonContent= "{\"generic_portlets\":"+portlets+"}" echo "json: $jsonContent"