fix creation of pkg folder for latest.json

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-02-28 11:14:08 +01:00
parent de8d109ba1
commit 001264bd1a
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 3 additions and 3 deletions

View File

@ -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)
}