[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 fi
cd $(dirname $filename) cd $(dirname $filename)
echo "PWD=$(pwd)" echo "PWD=$(pwd)"
ls -l *.deb ls -l cisco-*.deb
while read -r package; do while read -r package; do
# Cisco version format: <VERSION>-sai-<sai-ver>-<distribution>-<COMMIT HASH> # 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 # 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" package_url="$PACKAGE_URL/sai/ciscosai/master/$version/$package"
echo "Override package $package from $package_url" echo "Override package $package from $package_url"
wget "$package_url$StorageSASKey" -O "$package" wget "$package_url$StorageSASKey" -O "$package"
done < <(ls *.deb) done < <(ls cisco-*.deb)
env: env:
StorageSASKey: $(StorageSASKey) StorageSASKey: $(StorageSASKey)
condition: ne(variables['Build.Reason'], 'PullRequest') condition: ne(variables['Build.Reason'], 'PullRequest')