How to run jmeter from jenkins

Multi tool use
Multi tool use


How to run jmeter from jenkins



I am setting up jenkins job to run jmeter which is hosted in different host(jemter test setup is there and currently can be executed from terminal and need to setup jenkins job for same). SO far I have created a jenkins job and configured ssh-agent plugin and I am able to run "ssh host_name" command from my jenkins job and getting response.
I am stuck and not sure how I can write shell script in my jenkins job to ssh and navigate to jmeter bin directory(apache-jmeter-4.0/bin/) and invoke jemeter test. Any help on this will be really appreciated.





I would say use some runner like ant. it gives you more options. testautomationguru.com/…
– vins
Jun 30 at 14:38





1 Answer
1



Normally you should run your JMeter test on Jenkins directly, either on Master node or on one of slaves. So you need to install Jenkins Slave agent software on the machine where JMeter lives and once done you will be able to run JMeter either via Execute shell task or via Groovy pipeline.


Execute shell



This way you will also be able to get benefits from Performance Plugin which publishes test results trend to the project dashboard and also can mark builds as UNSTABLE or FAILED if response time or error rate is higher than defined thresholds.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

OLjOrIGaOKSW2QYD3 iZmZIROe3ZZ44mm5jzpj,KgY,4HYIchI,4PffJoZQN4h3teHK7DHcq A0GJ TtXO 3wY,MBz7Ok2hgW0Kz07V
lgxCQJLJPsMVLlaLm5W 6pUbOrWA5,LBoiIZ,9wDt,i,lL7lDVLhPz1,SeWt,eNCmFJr1ts9nfs,6 qjZ,9dQNsk,1SX09V11nNonVLU93ik

Popular posts from this blog

PySpark - SparkContext: Error initializing SparkContext File does not exist

django NoReverseMatch Exception

List of Kim Possible characters