Skip to content

Commit ebf6ecb

Browse files
Del BCECMD (#7572)
* Del BCECMD * Update * Update * Update * Update
1 parent 4d05a48 commit ebf6ecb

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

ci_scripts/ci_start.sh

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ if [ "${BUILD_DOC}" = "true" ] && [ -x /usr/local/bin/sphinx-build ] ; then
5757
git reset --hard && git clean -dfx
5858
cd ${DIR_PATH}
5959

60-
if [ -n "${BOS_CREDENTIAL_AK}" ] && [ -n "${BOS_CREDENTIAL_SK}" ] ; then
61-
echo "Ak = ${BOS_CREDENTIAL_AK}" >> ${BCECMD_CONFIG}/credentials
62-
echo "Sk = ${BOS_CREDENTIAL_SK}" >> ${BCECMD_CONFIG}/credentials
63-
fi
6460
if [ $xdebug_setted ] ; then
6561
set -x
6662
fi
@@ -70,14 +66,12 @@ if [ "${BUILD_DOC}" = "true" ] && [ -x /usr/local/bin/sphinx-build ] ; then
7066
if [ "${UPLOAD_DOC}" = "true" ] ; then
7167
PREVIEW_JOB_NAME="preview-pr-${GIT_PR_ID}"
7268
BOSBUCKET=${BOSBUCKET:=paddle-site-web-dev}
73-
${BCECMD} --conf-path ${BCECMD_CONFIG} bos sync "${OUTPUTDIR}/en/${VERSIONSTR}" "bos:/${BOSBUCKET}/documentation/en/${PREVIEW_JOB_NAME}" \
74-
--delete --yes --exclude "${OUTPUTDIR}/en/${VERSIONSTR}/_sources/"
75-
${BCECMD} --conf-path ${BCECMD_CONFIG} bos sync "${OUTPUTDIR}/en/${VERSIONSTR}" "bos:/${BOSBUCKET}/documentation/en/${PREVIEW_JOB_NAME}" \
76-
--delete --yes --exclude "${OUTPUTDIR}/en/${VERSIONSTR}/_sources/"
77-
${BCECMD} --conf-path ${BCECMD_CONFIG} bos sync "${OUTPUTDIR}/zh/${VERSIONSTR}" "bos:/${BOSBUCKET}/documentation/zh/${PREVIEW_JOB_NAME}" \
78-
--delete --yes --exclude "${OUTPUTDIR}/zh/${VERSIONSTR}/_sources/"
79-
${BCECMD} --conf-path ${BCECMD_CONFIG} bos sync "${OUTPUTDIR}/zh/${VERSIONSTR}" "bos:/${BOSBUCKET}/documentation/zh/${PREVIEW_JOB_NAME}" \
80-
--delete --yes --exclude "${OUTPUTDIR}/zh/${VERSIONSTR}/_sources/"
69+
wget -q --no-proxy https://xly-devops.bj.bcebos.com/home/bos_dir.tar --no-check-certificate
70+
tar xf bos_dir.tar
71+
python3 -m pip install bce-python-sdk==0.8.74
72+
# use bos_der.tar: The first parameter is to upload the directory, the second parameter is to upload the BOS directory, and the third parameter is to exclude the directory
73+
python3 BosClient.py ${OUTPUTDIR}/en/${VERSIONSTR} ${BOSBUCKET}/documentation/en/${PREVIEW_JOB_NAME} ${OUTPUTDIR}/en/${VERSIONSTR}/_sources/
74+
python3 BosClient.py ${OUTPUTDIR}/zh/${VERSIONSTR} ${BOSBUCKET}/documentation/zh/${PREVIEW_JOB_NAME} ${OUTPUTDIR}/zh/${VERSIONSTR}/_sources/
8175
# print preview url
8276
PREVIEW_URL_PROMPT="ipipe_log_param_preview_url: http://${PREVIEW_JOB_NAME}.${PREVIEW_SITE:-preview.paddlepaddle.org}/documentation/docs/zh/api/index_cn.html"
8377
fi

0 commit comments

Comments
 (0)