From 459ba257a41b4d8a16acddf06060c238a8e19490 Mon Sep 17 00:00:00 2001 From: Liu Shilong Date: Tue, 29 Aug 2023 19:14:45 +0800 Subject: [PATCH] [ci] Add job to cleanup nfs in armhf and arm64 agents. (#16270) Why I did it Clean old cached file in nfs disk for armhf/arm64 Work item tracking Microsoft ADO (number only): 24930879 --- .azure-pipelines/dpkg-cache-cleanup.yml | 27 ++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/.azure-pipelines/dpkg-cache-cleanup.yml b/.azure-pipelines/dpkg-cache-cleanup.yml index 2789d18188..50bb3a6363 100644 --- a/.azure-pipelines/dpkg-cache-cleanup.yml +++ b/.azure-pipelines/dpkg-cache-cleanup.yml @@ -15,13 +15,34 @@ trigger: none pr: none jobs: -- job: Build +- job: Amd pool: sonicbld timeoutInMinutes: 5 steps: - checkout: none - script: | - set -xe + df -h sudo find /nfs/dpkg_cache/ -name *.tgz -mtime +30 -type f -delete + df -h displayName: clean dpkg cache - +- job: Armhf + pool: sonicbld-armhf + timeoutInMinutes: 5 + steps: + - checkout: none + - script: | + df -h + sudo find /nfs/dpkg_cache/ -name *.tgz -mtime +30 -type f -delete + df -h + displayName: clean dpkg cache +- job: Arm64 + pool: sonicbld-arm64 + timeoutInMinutes: 5 + steps: + - checkout: none + - script: | + df -h + sudo find /nfs/dpkg_cache/ -name *.tgz -mtime +30 -type f -delete + df -h + displayName: clean dpkg cache +