feature/25131 #6

Merged
roberto.cirillo merged 31 commits from feature/25131 into master 2023-09-07 14:56:01 +02:00
1 changed files with 6 additions and 4 deletions
Showing only changes of commit 77cf75579c - Show all commits

10
Jenkinsfile vendored
View File

@ -367,11 +367,13 @@ 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"
echo " json: $portlets"
def jsonContent= "{\"generic_portlets\":"+portlets+"}"
def parser = new JsonSlurper()
def json = parser.parseText(jsonContent)
echo "json: $json"
// echo " json: $portlets"
// portlets += "}"
writeJSON file: 'portlets.json', json: portlets
writeJSON file: 'portlets.json', json: json
// 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")