fix json file generation

This commit is contained in:
Roberto Cirillo 2023-06-15 15:04:07 +02:00
parent 6ada59467f
commit 12be87c118
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -365,9 +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="\"generic_portlets\": ";
portlets += component_list?.collect{ return [ 'name': "$it.name", 'version': "$it.version", 'extension': 'war' ] }
portlets += "}"
// portlets += "}"
writeJSON file: 'portlets.json', json: portlets
// def read = readJSON file: 'portlets.json'
// println("Portlets found: "+read.name+" "+read.version+ " "+read.extension)