Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions paddle/scripts/paddle_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1119,9 +1119,15 @@ function generate_upstream_develop_api_spec() {
echo "develop git log: "
git log --pretty=oneline -10

dev_commit=`git log -1|head -1|awk '{print $2}'`
dev_url="https://xly-devops.bj.bcebos.com/PR/build_whl/0/${dev_commit}/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl"
url_return=`curl -s -m 5 -IL ${dev_url} |awk 'NR==1{print $2}'`
dev_commit=`git log -2|grep -w 'commit'|awk '{print $2}'`
for commit_id in $dev_commit
do
dev_url="https://xly-devops.bj.bcebos.com/PR/build_whl/0/${commit_id}/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl"
url_return=`curl -s -m 5 -IL ${dev_url} |awk 'NR==1{print $2}'`
if [ "$url_return" == '200' ];then
break
fi
done
if [ "$url_return" == '200' ];then
echo "wget develop whl from bos! "
mkdir -p ${PADDLE_ROOT}/build/python/dist && wget -q -P ${PADDLE_ROOT}/build/python/dist ${dev_url}
Expand Down