0

I'm trying to run performance tests in Jenkins using JMeter. I have the following shell script

jmeter -n -t JMeterTest.jmx -l Test.jtl

I am able to run jmeter locally in my project using jmeter or by doing /usr/local/bin/jmeter. But I don't know how to do it in Jenkins. Can anyone help me? Thanks

0

If you don't have JMeter startup script in your PATH - it is expected that Jenkins doesn't find it. Try providing the full path or something like

/usr/local/bin/./jmeter

By the way, Jenkins Performance Plugin page recommends launching JMeter via Maven Plugin or Ant task

See 5 Ways To Launch a JMeter Test without Using the JMeter GUI guide for detailed explanation of JMeter unattended execution options.

0

Do you have JMeter installed on a jenkins slave? If so, do you have it setup to use jmeter as a symlink. That's really all you need to do. What is the exact error you have? jmeter not found?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.