fix json syntax

This commit is contained in:
Roberto Cirillo 2023-06-15 17:12:50 +02:00
parent ba88a51028
commit 48e2c3fd47
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -370,7 +370,7 @@ def deployRelease(def categoryList, def yaml){
// 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+"}"
def jsonContent= "{\"generic_portlets\": "+portlets+"}"
echo "json: $jsonContent"
writeJSON file: 'portlets.json', json: jsonContent
// def read = readJSON file: 'portlets.json'