[ci] Fix some not sai package removed issue (#11544)

Only replace the file name starts with "cisco-".
This commit is contained in:
xumia 2022-07-28 00:58:04 +08:00 committed by GitHub
parent c0866d68a4
commit af2dea9c7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,7 +83,7 @@ stages:
fi
cd $(dirname $filename)
echo "PWD=$(pwd)"
ls -l *.deb
ls -l cisco-*.deb
while read -r package; do
# Cisco version format: <VERSION>-sai-<sai-ver>-<distribution>-<COMMIT HASH>
# The <sai-ver> may contain several values in one build, the part is skipped when publishing to storage
@ -93,7 +93,7 @@ stages:
package_url="$PACKAGE_URL/sai/ciscosai/master/$version/$package"
echo "Override package $package from $package_url"
wget "$package_url$StorageSASKey" -O "$package"
done < <(ls *.deb)
done < <(ls cisco-*.deb)
env:
StorageSASKey: $(StorageSASKey)
condition: ne(variables['Build.Reason'], 'PullRequest')