Build Stats

Jenkins hosting Website Original repository Jenkins 2.555.3 or newer Java 21 MIT License

GitHub   ·   Original   ·   Website   ·   中文说明

Build Stats turns the builds you can see into one page: counts, duration, queue time, success rate, who triggered them, and pipeline stage time. It also shows this computer's CPU, memory, disk, GPU, and network.

Requires Jenkins 2.555.3 or newer, and Java 21 on the controller. After install, open /build-stats.

Screenshots

Overview

Build Stats overview: heatmap, charts, and the status plate

Heatmap, cumulative machine time, success and failure, build count, time of day, success rate, result, machine time, trigger, and trigger account. Numbers come from builds visible to the signed-in user. Open this section on the website.

One pipeline

Duration, count, and success rate for one pipeline

Each pipeline has its own page. Stage duration is included when Pipeline: Stage View data exists. Open this section on the website.

This computer

This computer: CPU, memory, disk, GPU, and network

The machine running Jenkins: CPU, memory, disk, GPU, network, and disk throughput. The page is shown only when the controller runs on Windows. Open this section on the website.

Status plates

The overview and each pipeline carry this plate. It follows the newest build in the current range.

ON IT!
ON IT!
Running
ALL DONE!
ALL DONE!
Success
NEVER-ENDING WORK
NEVER-ENDING WORK
Failure or unstable
I QUIT!
I QUIT!
Aborted or not built

See the plates on the website.

How to open it

After install, the chart icon at the top right of Jenkins opens the plugin. On the Jenkins home page, the status card sits at the bottom right. Drag it, dock it to the right edge, or close it. The picture opens Build Stats. The text under the picture opens that build.

Open Build Stats from the chart icon or the home status card

The status card on the Jenkins home page

The page address is /build-stats. The page is in English unless you choose 中文.

Time, language, the summary, and the status plate sit together at the top right.

  • Time is 7 days, 30 days, 90 days, or All. The default is All.
  • Language is the globe. English is used unless you choose 中文. That choice stays in this browser.
  • Summary is off until you turn it on. It shows the note about locally exported records, and the paragraph of runs, machine time, queue time, success rate, and trigger accounts.
  • Status plate is on by default, on the Jenkins home page and on each pipeline page. Home only keeps the card on the Jenkins home page and hides it after you open a pipeline.

About

The author and GitHub links are fixed. A replacement logo stays in this browser only. Restore default clears it.

Field Default
Author XMuli
Website https://build-stats-plugin.xmuli.tech/
GitHub https://github.com/jenkinsci/build-stats-plugin
Original https://github.com/XMuli/build-stats-plugin
Logo src/main/webapp/images/logo.jpg

Replace logo.jpg to change the image every new browser sees.

Build

JDK 21.

mvn package

The package is target/build-stats.hpi.

Publish to the Jenkins update center

The plugin is hosted at jenkinsci/build-stats-plugin. A release reaches plugins.jenkins.io through .github/workflows/cd.yaml after ci.jenkins.io passes a pull request labeled enhancement or bug. Version numbers look like 123.vabcdef, not 1.0.0.

After that release is in the update center, install it from Manage Jenkins → Plugins → Available plugins. Search for build-stats or Build Stats.

A git tag can still attach an .hpi to a GitHub Release for a manual install. That release is not the Jenkins update center.