diff options
author | Arnstein Ressem <aressem@yahooinc.com> | 2023-11-08 13:49:32 +0100 |
---|---|---|
committer | Arnstein Ressem <aressem@yahooinc.com> | 2023-11-08 13:49:32 +0100 |
commit | 1501ccb9efa3a5506cbd38f5f486db0d42bc25f8 (patch) | |
tree | 43e2fab9a16ba3da98697bb8c39ba25c81a5da14 /screwdriver/delete-old-cloudsmith-artifacts.sh | |
parent | 9f41363b07c2cee35e3ca0442217f40d38cb81b8 (diff) |
Fix issues with sync and cleanup of archive artifacts.
Diffstat (limited to 'screwdriver/delete-old-cloudsmith-artifacts.sh')
-rwxr-xr-x | screwdriver/delete-old-cloudsmith-artifacts.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/screwdriver/delete-old-cloudsmith-artifacts.sh b/screwdriver/delete-old-cloudsmith-artifacts.sh index 1333aa6cec1..9e345646c13 100755 --- a/screwdriver/delete-old-cloudsmith-artifacts.sh +++ b/screwdriver/delete-old-cloudsmith-artifacts.sh @@ -10,7 +10,8 @@ curl -1sLf 'https://dl.cloudsmith.io/public/vespa/open-source-rpms/config.rpm.tx dnf config-manager --add-repo '/tmp/vespa-open-source-rpms.repo' rm -f /tmp/vespa-open-source-rpms.repo -VERSIONS_TO_DELETE=$(dnf list -y --quiet --showduplicates --disablerepo='*' --enablerepo=vespa-open-source-rpms vespa | awk '/[0-9].*\.[0-9].*\.[0-9].*/{print $2}' | sort -V | head -n -$MAX_NUMBER_OF_RELEASES | grep -v "7.594.36") +# Allow the last Vespa 7 release to remain in the repo +VERSIONS_TO_DELETE=$(dnf list -y --quiet --showduplicates --disablerepo='*' --enablerepo=vespa-open-source-rpms vespa | awk '/[0-9].*\.[0-9].*\.[0-9].*/{print $2}' | sort -V | grep -v "7.594.36" | head -n -$MAX_NUMBER_OF_RELEASES) if [[ -z "$VERSIONS_TO_DELETE" ]]; then echo "No old RPM versions to delete found. Exiting." |