Operations 6 min read

How to Integrate JMeter Performance Tests into Jenkins CI Pipeline

This guide shows how to connect JMeter performance testing with Jenkins continuous integration by setting up JMeter test plans, running them via GUI or command line, configuring Jenkins jobs with the Performance plugin, and automating result collection for each build.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
How to Integrate JMeter Performance Tests into Jenkins CI Pipeline

Purpose

Integrate performance testing with continuous integration using JMeter and Jenkins.

JMeter Setup

Download JMeter from http://jmeter.apache.org/ . Create a test plan that accesses http://www.cnblog.com and asserts that the response contains "cnblog".

Run the test via GUI to view results, or use the command line:

java -jar /path/to/ApacheJMeter.jar -Jjmeter.save.saveservice.output_format=xml -n -t /path/to/TestPlan.jmx -l TestPlan.jtl
JMeter Thread Group configuration
JMeter Thread Group configuration

Jenkins Configuration

Download Jenkins from https://jenkins.io/ and start it.

Install the Performance Plugin.

Create a job that executes the JMeter command (e.g., using an "Execute shell" step):

echo 'begin testing'
java -jar /path/to/ApacheJMeter.jar -Jjmeter.save.saveservice.output_format=xml -n -t /path/to/TestPlan.jmx -l TestPlan.jtl
echo 'testing end'
Jenkins Performance Plugin configuration
Jenkins Performance Plugin configuration

Running and Results

Run the Jenkins job; the workspace will contain jmeter.log and TestPlan.jtl. Add a performance report to the job to view statistics.

Jenkins job execution result
Jenkins job execution result

Follow‑up

Store the JMX file in a version‑control repository and trigger the job after each build to ensure every version meets performance requirements.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

ci/cdAutomationPerformance TestingJMeterJenkins
MaGe Linux Operations
Written by

MaGe Linux Operations

Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.