首页新闻找找看学习计划

jmeter+jenkins持续集成

0
悬赏园豆:5 [待解决问题]

以下是我在操作时遇到的问题,希望有懂的大神能够提供宝贵意见

1、jenkins--【构建环境】--【增加构建步骤】--【execute windows batch command】的命令:

echo "备份 html"
copy %projectHome%\results\%projectName%.html %WORKSPACE%\testResult.html

 

2、build with parameters后  控制台输出结果  报错(空格地方报错):如下

Failed控制台输出 Started by user root Building in workspace C:\Program Files (x86)\Jenkins\workspace\xjkd [xjkd] $ cmd /c call C:\Windows\TEMP\jenkins4804167812459148660.bat C:\Program Files (x86)\Jenkins\workspace\xjkd>echo "删除旧的jmeter日志" "删除旧的jmeter日志" C:\Program Files (x86)\Jenkins\workspace\xjkd>del C:\auto_api\xjkd_api\results\xjkd_api.jtl C:\Program Files (x86)\Jenkins\workspace\xjkd>echo "执行jmeter,日志输出到C:\auto_api\xjkd_api\results\xjkd_api.jtl" "执行jmeter,日志输出到C:\auto_api\xjkd_api\results\xjkd_api.jtl" C:\Program Files (x86)\Jenkins\workspace\xjkd>C:\apache-jmeter-3.1\bin\JMeter -n -t C:\auto_api\xjkd_api\scripts\察看结果树.jmx -l C:\auto_api\xjkd_api\results\xjkd_api.jtl Writing log file to: C:\Program Files (x86)\Jenkins\workspace\xjkd\jmeter.log Creating summariser Created the tree successfully using C:\auto_api\xjkd_api\scripts\察看结果树.jmx Starting the test @ Fri Jul 07 14:26:21 CST 2017 (1499408781597) Waiting for possible Shutdown/StopTestNow/Heapdump message on port 4445 summary = 2 in 00:00:00 = 13.7/s Avg: 31 Min: 3 Max: 60 Err: 0 (0.00%) Tidying up ... @ Fri Jul 07 14:26:21 CST 2017 (1499408781817) ... end of run [xjkd] $ cmd /c call C:\Windows\TEMP\jenkins466913295178848229.bat C:\Program Files (x86)\Jenkins\workspace\xjkd>echo "把jmeter日志转换成html" "把jmeter日志转换成html" C:\Program Files (x86)\Jenkins\workspace\xjkd>c:\strawberry\c\bin\xsltproc C:\apache-jmeter-3.1\extras\jmeter.results.shanhe.me.xsl C:\auto_api\xjkd_api\results\xjkd_api.jtl 1>C:\auto_api\xjkd_api\results\xjkd_api.html C:\Program Files (x86)\Jenkins\workspace\xjkd>

 

echo "备份 html" "备份 html" C:\Program Files (x86)\Jenkins\workspace\xjkd>copy C:\auto_api\xjkd_api\results\xjkd_api.html C:\Program Files (x86)\Jenkins\workspace\xjkd\testResult.html 命令语法不正确。

 

C:\Program Files (x86)\Jenkins\workspace\xjkd>exit 1 Build step 'Execute Windows batch command' marked build as failure [htmlpublisher] Archiving HTML reports... [htmlpublisher] Archiving at PROJECT level C:\Program Files (x86)\Jenkins\workspace\xjkd to C:\Program Files (x86)\Jenkins\jobs\xjkd\htmlreports\HTML_Report Finished: FAILURE

火火火的主页 火火火 | 菜鸟二级 | 园豆:221
提问于:2017-07-07 14:36
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册