构建统计 Build Stats

构建统计 Build Stats

当前账号能看到的构建,收成一页:次数、耗时、排队、成功率,以及流水线阶段耗时。

The builds you can see, on one page: counts, duration, queue time, success rate, and pipeline stage time.

首页右下角的状态牌
构建统计总览:热力图、趋势和右侧状态牌
总览。点开看完整一页。 Overview. Open the image for the full page.

状态牌Status plates

总览和每条流水线都挂着这块牌子,跟着当前范围内最新一次构建变。

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

  • 在干了

    在干了

    正在构建Running

  • 干完了

    干完了

    成功Success

  • 干不完

    干不完

    失败或不稳定Failure or unstable

  • 不干了

    不干了

    中止或未构建Aborted or not built

一条流水线One pipeline

每条流水线单独一页。有 Pipeline Stage View 的数据时,页上还有阶段耗时。

Each pipeline has its own page. Stage duration appears when Pipeline Stage View data exists.

一条流水线的耗时、次数和成功率
点开看完整一页。 Open the image for the full page.
本机的 CPU、内存、磁盘、显卡和网络
点开看完整一页。 Open the image for the full page.

这台电脑This computer

运行 Jenkins 的这台机器:CPU、内存、磁盘、显卡、网速,以及磁盘读写。

The machine running Jenkins: CPU, memory, disk, GPU, network, and disk throughput.

从哪里进来How to open it

右上角的折线图标进入插件。首页右下角的状态牌可以拖动、收到右边,或关闭。点图片进入构建统计,点下面的文字打开这一次构建。

The chart icon at the top right opens the plugin. The home card can be dragged, docked, or closed. The picture opens Build Stats. The text opens that build.

从 Jenkins 右上角图标和首页状态牌进入构建统计

安装Install

需要 Jenkins 2.555.3 或更新版本,控制器使用 Java 21。进入更新中心之前,用 JDK 21 打包,再从插件管理的高级设置里部署。

Requires Jenkins 2.555.3 or newer, and Java 21 on the controller. Until it is in the update center, package with JDK 21 and deploy the file from the plugin manager.

mvn package

产物是 target/build-stats.hpi。页面地址是 /build-stats。

The package is target/build-stats.hpi. The page is /build-stats.