Skip to content

Commit

Permalink
Revert to gsutil
Browse files Browse the repository at this point in the history
Everything is hardcoded to gsutil.
A bigger change would be required.

Change-Id: I5f49b83e5834294ed925c34984a4754f37c0a458
Signed-off-by: Cédric Ollivier <[email protected]>
  • Loading branch information
collivier committed Jan 6, 2023
1 parent 4f3ef44 commit e059eda
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 e059eda

Please sign in to comment.