[ci] Fix some not sai package removed issue (#11544)
Only replace the file name starts with "cisco-".
This commit is contained in:
parent
c0866d68a4
commit
af2dea9c7f
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user