[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
This commit is contained in:
Liu Shilong 2023-08-29 19:14:45 +08:00 committed by GitHub
parent 80ce957d20
commit 459ba257a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,13 +15,34 @@ trigger: none
pr: none pr: none
jobs: jobs:
- job: Build - job: Amd
pool: sonicbld pool: sonicbld
timeoutInMinutes: 5 timeoutInMinutes: 5
steps: steps:
- checkout: none - checkout: none
- script: | - script: |
set -xe df -h
sudo find /nfs/dpkg_cache/ -name *.tgz -mtime +30 -type f -delete 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 displayName: clean dpkg cache