generated from gCubeCI/Pipeline-Docker-Template
fix remove unset group
This commit is contained in:
parent
87931065a3
commit
30f75a203e
|
@ -369,7 +369,7 @@ def deployRelease(def categoryList, def yaml){
|
|||
//def portlets="{\"generic_portlets\": ";
|
||||
// portlets += component_list?.collect{ return [ 'name': "$it.name", 'version': "$it.version", 'extension': 'war' ] }
|
||||
portlets += component_list?.collect{ return " {\"group_id\": \"$it.group_id\", \"name\": \"$it.name\", \"version\": \"$it.version\", \"extension\": \"war\"} "}
|
||||
portlets.removeAll([null]);
|
||||
portlets.removeAll(["\"group_id\": \"null\""]);
|
||||
echo "portlets: $portlets"
|
||||
def jsonContent= "{\"generic_portlets\": "+portlets+"}"
|
||||
echo "json: $jsonContent"
|
||||
|
|
Loading…
Reference in New Issue