From 1609eb2c1e90470da17eea9eb7d74545130c9a38 Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Thu, 15 Jun 2023 16:07:00 +0200 Subject: [PATCH] fix again json syntax --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index a6ee0f4..253b75d 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"