From 001264bd1aa33c060352452b891e12f621eb0012 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Fri, 28 Feb 2020 11:14:08 +0100 Subject: [PATCH] fix creation of pkg folder for latest.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- ci/common.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/common.groovy b/ci/common.groovy index 3ce5f273f1..717be12565 100644 --- a/ci/common.groovy +++ b/ci/common.groovy @@ -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) }