Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

I want to delete existing content when using Google Cloud Storage Deploy

marton_tempus October 18, 2021

I want to delete existing content when using Google Cloud Storage Deploy

In other words I would like to have an option that removes everything in $BUCKET before uploading then new content.

Something like this (that is not tested!!)

if [ "$DELETE_BEFORE_COPY" = "true" ]; then
   run gsutil rm -f gs://${BUCKET}/ || true # Allow fail if path does not exist yet
fi

run gsutil ${METADATA_STRING} cp ${ARGS_STRING} ${SOURCE} gs://${BUCKET}/

 

1 answer

0 votes
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 22, 2021

@marton_tempus  Hi. Thanks for your idea. We will investigate about that and notify you if this feature becomes available.

Regards, Igor.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events