From 6ada59467f73ad638cf6b5ac2c607f057672d3bf Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Thu, 15 Jun 2023 14:54:23 +0200 Subject: [PATCH] fix json file --- Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 797bedb..9d91750 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -365,7 +365,9 @@ def deployRelease(def categoryList, def yaml){ def sg= component_list?.collect{ if ("$it.name" == 'smartgears-distribution'){ return "$it.version"; }} smartgears=(sg !=null ) ? sg[0] : '' }else if (category =="${PORTLET_CATEGORY}"){ + portlets="{ \"generic_portlets\": "; portlets += component_list?.collect{ return [ 'name': "$it.name", 'version': "$it.version", 'extension': 'war' ] } + portlets += "}" writeJSON file: 'portlets.json', json: portlets // def read = readJSON file: 'portlets.json' // println("Portlets found: "+read.name+" "+read.version+ " "+read.extension)