Unable to publish results using performance plugin for jenkins

2,203 views
Skip to first unread message

zakka_jacob

unread,
Sep 12, 2017, 2:23:03 PM9/12/17
to jmeter-plugins
Hi All,

I was trying to run a plain vanilaa jmeter script through jenkins. I am unable to find the report section in any of the versions of the performance plugin. At the  psot build step, we are unable to find the "Add new report" section which has the drop down of jmeter,jemtercsv,junit,jmeter summarizer,wrk.

I tried downloading older versions of the plugin but do not see the "Add new report" option available in the post build configuration. We even tried restarting jenkins, configure the build andreconfigure build, but with no luck. Please find the snapshots of the job that i have configured. It is named My_Jenkins_Job.

The pain point right now is that my build fails with the below message:

C:\Users\Administrator\Downloads\apache-jmeter-3.1\apache-jmeter-3.1\bin>jmeter -n  -t  C:\Users\Administrator\Desktop\Self_Service_NewSite_Launch\Self_Service_NewSite_Launch\Selfservice_API\Script\Self_Service_Perftest.jmx  
Writing log file to: C:\Users\Administrator\Downloads\apache-jmeter-3.1\apache-jmeter-3.1\bin\jmeter.log
Creating summariser <summary>
Created the tree successfully using C:\Users\Administrator\Desktop\Self_Service_NewSite_Launch\Self_Service_NewSite_Launch\Selfservice_API\Script\Self_Service_Perftest.jmx
Starting the test @ Tue Sep 12 14:04:10 EDT 2017 (1505239450488)
Waiting for possible Shutdown/StopTestNow/Heapdump message on port 4445
summary =      4 in 00:00:01 =    2.8/s Avg:   289 Min:    21 Max:   923 Err:     2 (50.00%)
Tidying up ...    @ Tue Sep 12 14:04:12 EDT 2017 (1505239452117)
... end of run
Cannot detect file type because of error: Failed to copy C:\Users\Administrator\.jenkins\jobs\${ITEM_FULLNAME}\builds\35\temp\jenkins.jtl to C:\Users\Administrator\.jenkins\jobs\Selfservice_API_Tests\builds\35\temp\jenkins.jtl
Build step 'Publish Performance test result report' changed build result to FAILURE
Finished: FAILURE

When i browse through the build folder i find an empt jtl file as well. The new version of the plugin has very limited documentation of the usage as it is used for blazemeter,tarus etc;

I am also attaching the job config in the attachment section

Your help would be appreciated




Till Neunast

unread,
Sep 17, 2017, 9:48:53 PM9/17/17
to jmeter-plugins
As for the drop-down, the newer plugin versions now auto-detect the file format.

The error message suggests that the plugin fails to find the jtl file (I guess that ITEM_FULLNAME is not defined in that context).
Also, it's not necessary to specify the full path, but a relative path (in the Workspace) like temp/jenkins.jtl or **/jenkins.jtl should do.

The JMeter output suggests there should be 4 samples (2 of which failed), so perhaps check the JMeter script if it actually writes to jenkins.jtl

Reply all
Reply to author
Forward
0 new messages