From 5b44c32f4f4474eceeec60aae9af9974d369cf73 Mon Sep 17 00:00:00 2001 From: Andrea Frittoli Date: Mon, 25 Sep 2023 10:36:59 +0100 Subject: [PATCH] Fix latest folder in releases The gcs-upload task by default uses "gsutil cp -r" to copy the local folder with release files to the latest folder. That works well if "latest" does not exists, otherwise it creates a "" folder into "latest", which is not the desired behaviour. The "deleteExtraFiles" flag in the task means that "gsutil rsync -r" is used instead, which achieves the correct behaviour in all cases ("latest" exists or not. Signed-off-by: Andrea Frittoli --- tekton/release-pipeline.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tekton/release-pipeline.yaml b/tekton/release-pipeline.yaml index 1c02e920cc5..fa7c113e720 100644 --- a/tekton/release-pipeline.yaml +++ b/tekton/release-pipeline.yaml @@ -221,6 +221,8 @@ spec: value: $(params.versionTag) - name: serviceAccountPath value: $(params.serviceAccountPath) + - name: deleteExtraFiles + value: "true" # Uses rsync to copy content into latest - name: report-bucket runAfter: [publish-to-bucket] params: