restore old variable for debugging

This commit is contained in:
Roberto Cirillo 2023-06-15 15:28:26 +02:00
parent f9c0476638
commit 203967e625
1 changed files with 4 additions and 3 deletions

7
Jenkinsfile vendored
View File

@ -367,10 +367,11 @@ 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' ] }
def jsonContent= "{\"generic_portlets\":"+portlets+"}"
echo "json: $jsonContent"
// def jsonContent= "{\"generic_portlets\":"+portlets+"}"
// echo "json: $jsonContent"
echo " json: $portlets"
// portlets += "}"
writeJSON file: 'portlets.json', json: jsonContent
writeJSON file: 'portlets.json', json: portlets
// def read = readJSON file: 'portlets.json'
// println("Portlets found: "+read.name+" "+read.version+ " "+read.extension)
def output = sh(returnStdout: true, returnStdoutTrim: true, script: "mv portlets.json $ANSIBLE_ROOT_FOLDER")