Answers: <p>Yes, you can easily trigger your JMeter jmx suite via jenkins coupled with performance plugin. For triggering the build:</p>
  
  <ul>
  <li>If you're using windows execute the build as windows batch command, giving the same commands that you would give if you were running your JMeter script from your command line.</li>
  <li>To give parameters you can conveniently select the option in jenkins configuration 'This project is parameterised' and pass the parameters ensuring the same reference is used in your JMeter jmx file.</li>
  <li>You can use the __P() function to make ramup, hostname or number of threads configurable and refer them using J command.</li>
  </ul>
  
Answers: CC BY-SA 4.0
Answers: 2018-06-01T06:09:20.383Z
Answers: 2018-06-01T06:09:20.383Z
Answers: Rohan Kalia
Answers: <p>You can use this following command to run your performance test</p>
  
  <pre><code>jmeter -n -t GenericPerformanceScript.jmx &gt; output.log &amp;
  </code></pre>
  
Answers: CC BY-SA 4.0
Answers: 2020-02-04T13:09:31.933Z
Answers: 2020-02-05T04:30:36.460Z
Answers: 2020-02-05T04:30:36.460Z
Answers: Mahesh Keragute
Body: <p>I have a JMeter test I would like to run in JMeter that have some parameters.  I installed the performance-plugin for Jenkins to enable JMeter testing as described here:</p>
  
  <p><a href="http://jenkinsci.github.io/performance-plugin/RunTests.html" rel="nofollow noreferrer">http://jenkinsci.github.io/performance-plugin/RunTests.html</a></p>
  
  <p>However, the instruction is not clear on how to enter command-line parameters which is essential for my test.  Here is what I got so far:</p>
  
  <p><a href="https://i.sstatic.net/VGeJs.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/VGeJs.png" alt="enter image description here"></a></p>
  
  <p>Is it possible at all to enter parameters to run my test?  Or does it have to be completely parameter free.  IE, I need to hardcode all parameters into the test itself?</p>
  
Tags: <jenkins>
Title: Run JMeter Test in Jenkins with Parameters
UserDisplayName: Bill Software Engineer
ThreadText: # Run JMeter Test in Jenkins with Parameters
  
  (Asked by: username_0 on 2018-05-24)
  
  I have a JMeter test I would like to run in JMeter that have some parameters. I installed the performance-plugin for Jenkins to enable JMeter testing as described here:
  
  <http://jenkinsci.github.io/performance-plugin/RunTests.html>
  
  However, the instruction is not clear on how to enter command-line parameters which is essential for my test. Here is what I got so far:
  
  [![enter image description here](https://i.sstatic.net/VGeJs.png)](https://i.sstatic.net/VGeJs.png)
  
  Is it possible at all to enter parameters to run my test? Or does it have to be completely parameter free. IE, I need to hardcode all parameters into the test itself?
  
  **Tags:** jenkins
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-06-01. Score: 1 | Accepted answer
  
  Yes, you can easily trigger your JMeter jmx suite via jenkins coupled with performance plugin. For triggering the build:
  
  * If you're using windows execute the build as windows batch command, giving the same commands that you would give if you were running your JMeter script from your command line.
  * To give parameters you can conveniently select the option in jenkins configuration 'This project is parameterised' and pass the parameters ensuring the same reference is used in your JMeter jmx file.
  * You can use the \_\_P() function to make ramup, hostname or number of threads configurable and refer them using J command.
  
  
  ---
  
  ### Answer by username_2 on 2020-02-04. Score: 0
  
  You can use this following command to run your performance test
  
  ```
  jmeter -n -t GenericPerformanceScript.jmx > output.log &
  
  ```
  
  
  ---
  
  