Skip to main content
Back to blog
tools 30 March 2020 2 min read

Jenkins & JMeter

Learn how to integrate Apache JMeter performance testing with Jenkins through the Performance Plugin for automated test execution and results capture.

M

Mark

Performance Testing Expert

Jenkins is the leading open source automation server, providing hundreds of plugins to support building, deploying and automating any project. This article explains how to integrate Apache JMeter performance testing with Jenkins through the Performance Plugin, enabling automated test execution and results capture.

Prerequisites

  • Jenkins installation
  • Taurus or Apache JMeter

Installing the Performance Plugin

  1. Navigate to Manage Jenkins
  2. Select Manage Plugins
  3. Access the Available Tab
  4. Search for “Performance” in the filter
  5. Select the Performance plugin and download
  6. Restart Jenkins when prompted

Creating a Jenkins Job

Create a new freestyle project called “JMeter” with parameterized builds. Add two string parameters:

ParameterDescriptionDefault
USERSNumber of concurrent users1
ITERATIONSTotal iterations to execute1

Build Configuration

The build step utilizes “Run Performance Test” with Taurus parameters:

execution:
  - concurrency: ${USERS}
    iterations: ${ITERATIONS}
    ramp-up: 1m
    scenario: simple

scenarios:
  simple:
    script: test.jmx

You can customize execution settings including:

  • Concurrency (number of virtual users)
  • Iterations (total loops)
  • Ramp-up timing

Post-Build Actions

Configure the Performance Plugin to publish results:

  1. Add post-build action “Publish Performance test result report”
  2. Specify the JTL file location
  3. Configure thresholds for pass/fail criteria

Further Reading

Tags:

#jenkins #jmeter #ci-cd #automation #performance-testing

Need help with performance testing?

Let's discuss how I can help improve your application's performance.

Get in Touch