jenkins_jmeter配置

echo "job begin"
date
export current_time=`date "+%Y%m%d_%H%M%S"`
mkdir -p ${WORKSPACE}/${BUILD_NUMBER}/jtls
mkdir -p ${WORKSPACE}/${BUILD_NUMBER}/reports
/opt/apps/apache-jmeter-5.1.1/bin/jmeter.sh -Jvuser_num=${vuser_num} -Jstart_time=${start_time} -Jduration_time=${duration_time} -n -t ${WORKSPACE}/${JOB_NAME}.jmx -l ${WORKSPACE}/${BUILD_NUMBER}/jtls/${JOB_NAME}.jtl -j ${WORKSPACE}/${BUILD_NUMBER}/jtls/jmeter.log -e -o ${WORKSPACE}/${BUILD_NUMBER}/reports
echo "job end"
date
归档成品
${BUILD_NUMBER}/
Editable Email Notification
$DEFAULT_CONTENT <br>
<h2>报告地址:</h2>${BUILD_URL}artifact/${BUILD_NUMBER}/reports/index.html

 

posted @ 2019-04-16 17:12  xiaodebing  阅读(312)  评论(0编辑  收藏  举报