Skip to content

Commit

Permalink
Merge "Revert to gsutil"
Browse files Browse the repository at this point in the history
  • Loading branch information
collivier authored and Gerrit Code Review committed Jan 17, 2023
2 parents 4bed87d + e059eda commit 46ba114
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions jjb/releng/releng-jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@
sudo apt-get -o DPkg::Lock::Timeout=300 update && \
sudo DEBIAN_FRONTEND=noninteractive apt-get \
-o DPkg::Lock::Timeout=300 install \
google-cloud-sdk s4cmd -y
google-cloud-sdk -y
cd $WORKSPACE/utils/
./artifacts.opnfv.org.sh
Expand Down Expand Up @@ -482,5 +482,5 @@
sudo apt-get -o DPkg::Lock::Timeout=300 update && \
sudo DEBIAN_FRONTEND=noninteractive apt-get \
-o DPkg::Lock::Timeout=300 install \
google-cloud-sdk s4cmd -y
google-cloud-sdk -y
$WORKSPACE/utils/retention_script.sh
2 changes: 1 addition & 1 deletion utils/retention_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ do

if [[ "$daysold" -gt "10" ]]; then
echo "$daysold Days old deleting: $(basename $artifact)"
s4cmd del --endpoint-url https://storage.googleapis.com "$artifact"
gsutil rm "$artifact"
else
echo "$daysold Days old retaining: $(basename $artifact)"
fi
Expand Down

0 comments on commit 46ba114

Please sign in to comment.