diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 3ed5f992ed40cf437ef9a7ce0ff823e18e39fee0..9e4aac55f5d2df394c77153a1daf625dd82cd0aa 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -955,6 +955,9 @@ function fetch_upstream_develop_if_not_exist() { } function check_whl_size() { + if [ ${BRANCH} != 'develop' ];then + return + fi set +x pr_whl_size=`du -m ${PADDLE_ROOT}/build/pr_whl/*.whl|awk '{print $1}'` @@ -1094,6 +1097,10 @@ function check_approvals_of_unittest() { fi fi elif [ $check_times == 3 ]; then + if [ ${BRANCH} != 'develop' ];then + return + fi + rm -f fluidInference_so_size curl -O https://paddle-docker-tar.bj.bcebos.com/paddle_ci_index/fluidInference_so_size oriBuildSize=`cat fluidInference_so_size` @@ -3276,6 +3283,10 @@ function build_develop() { } function check_coverage_build() { + if [ ${BRANCH} != 'develop' ];then + return + fi + rm -f build_size curl -O https://paddle-docker-tar.bj.bcebos.com/paddle_ci_index/build_size curl -O https://xly-devops.bj.bcebos.com/PR/build_whl/${AGILE_PULL_ID}/${AGILE_REVISION}/coverage_build_size