fix creation of pkg folder for latest.json
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
de8d109ba1
commit
001264bd1a
|
@ -22,10 +22,10 @@ def updateBucketJSON(urls, fileName) {
|
|||
]
|
||||
def filePath = "${pwd()}/pkg/${fileName}"
|
||||
/* it might not exist */
|
||||
sh 'mkdir -p pkg'
|
||||
sh "mkdir -p ${pwd()}/pkg"
|
||||
def contentJson = new JsonBuilder(content).toPrettyString()
|
||||
println "${fileName}:\n${contentJson}"
|
||||
new File(filePath).write(contentJson)
|
||||
println "${filePath}:\n${contentJson}"
|
||||
writeFile(file: filePath, text: contentJson)
|
||||
return uploadArtifact(filePath)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue