move json file in the right location

This commit is contained in:
Roberto Cirillo 2023-06-14 17:04:13 +02:00
parent b26d4cde46
commit eacc8c2d97
1 changed files with 4 additions and 2 deletions

6
Jenkinsfile vendored
View File

@ -389,8 +389,10 @@ def deployRelease(def categoryList, def yaml){
}else if (category =="${PORTLET_CATEGORY}"){
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)
// 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")
echo "Output: '${output}'"
}else{
releaseList += component_list?.collect {return "$it.name,$it.version" }
}