Everything is hardcoded to gsutil.
A bigger change would be required.
Change-Id: I5f49b83e5834294ed925c34984a4754f37c0a458
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
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
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
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