generated from gCubeCI/Pipeline-Docker-Template
fix json syntax
This commit is contained in:
parent
ba88a51028
commit
48e2c3fd47
|
@ -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' ] }
|
||||||
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"
|
echo "portlets: $portlets"
|
||||||
def jsonContent= "{\"generic_portlets\":"+portlets+"}"
|
def jsonContent= "{\"generic_portlets\": "+portlets+"}"
|
||||||
echo "json: $jsonContent"
|
echo "json: $jsonContent"
|
||||||
writeJSON file: 'portlets.json', json: jsonContent
|
writeJSON file: 'portlets.json', json: jsonContent
|
||||||
// def read = readJSON file: 'portlets.json'
|
// def read = readJSON file: 'portlets.json'
|
||||||
|
|
Loading…
Reference in New Issue