user1622578
user1622578

Reputation: 1

Running Jmeter from execute shell on Jenkins

After building the maven projects I'd like to run the jmeter tests independently. I go to the jmeter bin folder and execute:

jmeter -n -t $jmxFile -l $jtlFile

but I get the error:

/tmp/hudson2322728548480325736.sh: line 7: jmeter: command not found
Build step 'Execute shell' marked build as failure

What commands can I use?

Say I have the jmx files under one particular folder. If there is another way to run these tests, please let me know.

Thanks in advance.

Upvotes: 0

Views: 4979

Answers (2)

ibalosh
ibalosh

Reputation: 135

you can also checkout how we added JMeter tests to Jenkins:

http://ibalosh.tumblr.com/post/35475979058/running-jmeter-tests-with-jenkins

might help Igor

Upvotes: 0

UBIK LOAD PACK
UBIK LOAD PACK

Reputation: 34566

Ensure jmeter is on user running jenkins path. Another option is to put the full path to jmeter. A third one to use maven plugins, see:

Upvotes: 3

Related Questions