fix portlet collection method

This commit is contained in:
Roberto Cirillo 2023-06-14 15:24:58 +02:00
parent 045849a57b
commit 65d5636324
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -387,7 +387,7 @@ 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 += 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' ] }
writeJSON file: 'portlets.json', json: portlets
def read = readJSON file: 'portlets.json'
println("Portlets found: "+read.name+" "+read.version+ " "+read.extension)