A Jenkins plugin for analyzing the historical console output of a Job with the goal of determining which steps are taking the most time.
2.361.4
This plugin scans console output for successful builds. If the line matches one of the configured regex keys, it will store the timestamp generated for that line by the Timestamper Plugin. Then, it generates a report showing how those steps contributed to the total build time. This is intended to help analyze which steps in the build process are good candidates for optimization.
A Build Time Trend graph showing what portion of the total build time each step has taken over the scanned builds.
A Last Successful Build Times table showing each line that was matched in the most recent build. This helps analyze if the steps being matched are correct.
A Mean Successful Build Times table showing the mean amount of time each step has taken across all successful builds.
Install Plugin
Restart Jenkins
Each job will now have a new action:
Enable Timestamps for any jobs you want to analyze (the report will only include results for builds where this plugin was enabled):
The report will be pre-populated with regex to denote the start and end of the job.
Add/Update regex statements to match parts of the build process.
(Optional) Set a limit on the "Maximum Builds To Process"
Click Reprocess Report
.
This will regenerate the report by searching for the configured steps in the console output for each successful run of the job that had Timestamps enabled.
Note: This process can take some time for jobs with a lot of console output and/or a lot of build history.
When the report executes, the results for each build are cached. When the report is reloaded, the plugin will check for other successful builds that have not been processed and update the report accordingly.