Skip to content

Commit 4b8123d

Browse files
For commit id (#60145)
1 parent a68b30a commit 4b8123d

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

paddle/scripts/paddle_build.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,9 +1119,15 @@ function generate_upstream_develop_api_spec() {
11191119
echo "develop git log: "
11201120
git log --pretty=oneline -10
11211121

1122-
dev_commit=`git log -1|head -1|awk '{print $2}'`
1123-
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"
1124-
url_return=`curl -s -m 5 -IL ${dev_url} |awk 'NR==1{print $2}'`
1122+
dev_commit=`git log -2|grep -w 'commit'|awk '{print $2}'`
1123+
for commit_id in $dev_commit
1124+
do
1125+
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"
1126+
url_return=`curl -s -m 5 -IL ${dev_url} |awk 'NR==1{print $2}'`
1127+
if [ "$url_return" == '200' ];then
1128+
break
1129+
fi
1130+
done
11251131
if [ "$url_return" == '200' ];then
11261132
echo "wget develop whl from bos! "
11271133
mkdir -p ${PADDLE_ROOT}/build/python/dist && wget -q -P ${PADDLE_ROOT}/build/python/dist ${dev_url}

0 commit comments

Comments
 (0)