generated from gCubeCI/Pipeline-Docker-Template
add brackets to json creation string
This commit is contained in:
parent
1609eb2c1e
commit
ba88a51028
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue