Skip to content

Commit 5b44c32

Browse files
afrittolitekton-robot
authored andcommitted
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 "<version>" 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 <andrea.frittoli@uk.ibm.com>
1 parent 0e1b1a3 commit 5b44c32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tekton/release-pipeline.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ spec:
221221
value: $(params.versionTag)
222222
- name: serviceAccountPath
223223
value: $(params.serviceAccountPath)
224+
- name: deleteExtraFiles
225+
value: "true" # Uses rsync to copy content into latest
224226
- name: report-bucket
225227
runAfter: [publish-to-bucket]
226228
params:

0 commit comments

Comments
 (0)