Merge "Build Ubuntu 16.04 for mininet-ovs-2.5"
[releng/builder.git] / jjb / opendaylight-infra-cleanup-old-images.sh
1 #!/bin/bash
2 LFTOOLS_DIR="$WORKSPACE/.venv-lftools"
3 if [ ! -d "$LFTOOLS_DIR" ]
4 then
5     virtualenv "$LFTOOLS_DIR"
6     # shellcheck disable=SC1090
7     source "$LFTOOLS_DIR/bin/activate"
8     pip install --upgrade pip
9     pip install "lftools>=0.0.10"
10     pip freeze
11 fi
12 # shellcheck disable=SC1090
13 source "$LFTOOLS_DIR/bin/activate"
14
15 lftools openstack --os-cloud odlpriv-sandbox \
16     image cleanup --hide-public=True \
17                   --days=30 \
18                   --clouds=odlpriv-sandbox,rackspace