Fix old versions not cleanup issue (#7575)

Why I did it
Fix some of the versions in files/build/versions folder not cleanup issue when generating new version configuration.
This commit is contained in:
xumia 2021-05-11 23:01:15 +08:00 committed by GitHub
parent a3980f948a
commit dc6d5a78b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,6 +69,9 @@ stages:
- download: current
patterns: '**/versions-*'
- script: |
# Cleanup the old versions
rm -rf files/build/versions
mkdir -p target
default_platform=broadcom
artifacts=$(find $(Pipeline.Workspace) -maxdepth 1 -type d -name 'sonic-buildimage.*' | grep -v "sonic-buildimage.${default_platform}")