generated from gCubeCI/Pipeline-Docker-Template
fix collection
This commit is contained in:
parent
0ec2f9b56d
commit
f823ac8d19
|
@ -369,7 +369,7 @@ def deployRelease(def categoryList, def yaml){
|
||||||
//def portlets="{\"generic_portlets\": ";
|
//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 " {\"group_id\": \"$it.group_id\", \"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 += component_list?.collect{ if ($it.group_id != null) return "{\"group_id\": \"$it.group_id\", \"name\": \"$it.name\", \"version\": \"$it.version\", \"extension\": \"war\"} "; else return "{\"name\": \"$it.name\", \"version\": \"$it.version\", \"extension\": \"war\"}"}
|
portlets += component_list?.collect{ if ("${it.group_id}" != null) return "{\"group_id\": \"$it.group_id\", \"name\": \"$it.name\", \"version\": \"$it.version\", \"extension\": \"war\"} "; else return "{\"name\": \"$it.name\", \"version\": \"$it.version\", \"extension\": \"war\"}"}
|
||||||
// portlets.removeAll(["\"group_id\": \"null\""]);
|
// portlets.removeAll(["\"group_id\": \"null\""]);
|
||||||
echo "portlets: $portlets"
|
echo "portlets: $portlets"
|
||||||
def jsonContent= "{\"generic_portlets\": "+portlets+"}"
|
def jsonContent= "{\"generic_portlets\": "+portlets+"}"
|
||||||
|
|
Loading…
Reference in New Issue