generated from gCubeCI/Pipeline-Docker-Template
move json file in the right location
This commit is contained in:
parent
b26d4cde46
commit
eacc8c2d97
|
@ -389,8 +389,10 @@ def deployRelease(def categoryList, def yaml){
|
||||||
}else if (category =="${PORTLET_CATEGORY}"){
|
}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
|
writeJSON file: 'portlets.json', json: portlets
|
||||||
def read = readJSON file: 'portlets.json'
|
// def read = readJSON file: 'portlets.json'
|
||||||
println("Portlets found: "+read.name+" "+read.version+ " "+read.extension)
|
// 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{
|
}else{
|
||||||
releaseList += component_list?.collect {return "$it.name,$it.version" }
|
releaseList += component_list?.collect {return "$it.name,$it.version" }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue