diff --git a/ci_scripts/check_api_cn.sh b/ci_scripts/check_api_cn.sh index 691df1e655e..bbea52fc18f 100644 --- a/ci_scripts/check_api_cn.sh +++ b/ci_scripts/check_api_cn.sh @@ -3,11 +3,11 @@ set -x function install_paddle() { # try to download paddle, and install + PADDLE_WHL=https://paddle-fluiddoc-ci.bj.bcebos.com/python/dist/paddlepaddle_gpu-0.0.0-cp38-cp38-linux_x86_64.whl if [ ${BRANCH} = 'release/2.1' ] ; then - pip install https://paddle-fluiddoc-ci.bj.bcebos.com/python/dist/paddlepaddle_gpu-2.1.0-cp38-cp38-linux_x86_64.whl - else - pip install https://paddle-fluiddoc-ci.bj.bcebos.com/python/dist/paddlepaddle_gpu-0.0.0-cp38-cp38-linux_x86_64.whl + PADDLE_WHL=https://paddle-fluiddoc-ci.bj.bcebos.com/python/dist/paddlepaddle_gpu-2.1.0-cp38-cp38-linux_x86_64.whl fi + pip install --no-cache-dir -i https://mirror.baidu.com/pypi/simple ${PADDLE_WHL} # if failed, build paddle if [ $? -ne 0 ];then build_paddle