add check on group_id just for test

This commit is contained in:
Roberto Cirillo 2023-06-16 08:56:40 +02:00
parent 48e2c3fd47
commit dd691f73c9
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -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 " {\"group_id\": \"${it.group} ?: \"org.gcube.portlets.user\"\", \"name\": \"$it.name\", \"version\": \"$it.version\", \"extension\": \"war\"} "}
echo "portlets: $portlets"
def jsonContent= "{\"generic_portlets\": "+portlets+"}"
echo "json: $jsonContent"