feature/25131 #6

Merged
roberto.cirillo merged 31 commits from feature/25131 into master 2023-09-07 14:56:01 +02:00
1 changed files with 3 additions and 2 deletions
Showing only changes of commit 0ec2f9b56d - Show all commits

5
Jenkinsfile vendored
View File

@ -368,8 +368,9 @@ 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 " {\"group_id\": \"$it.group_id\", \"name\": \"$it.name\", \"version\": \"$it.version\", \"extension\": \"war\"} "}
portlets.removeAll(["\"group_id\": \"null\""]);
// 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.removeAll(["\"group_id\": \"null\""]);
echo "portlets: $portlets"
def jsonContent= "{\"generic_portlets\": "+portlets+"}"
echo "json: $jsonContent"