diff --git a/Jenkinsfile b/Jenkinsfile index c64eca9..8de43ed 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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")