Demo entry 6633196

py

   

Submitted by lu on Aug 01, 2017 at 03:12
Language: Python. Code size: 367 Bytes.

# 上传最新的包到 AOPS 平台
cd ${AOPS_SCRIPT_DIR}
for file in `find ${UPLOAD_WORKSPACE}/${JOB_NAME} -maxdepth 1 -name '*.war'`
do
    filename=`basename $file ".war"`
    ./register_repo.py --pkg_name $filename --file $file --version "TEST--${SYSTEM}_${BUILD_ID}"     --remark "auto package by ci" &
sleep 3
done
wait
##清掉war包
rm ${UPLOAD_WORKSPACE}/${JOB_NAME}/*.war

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).