All Projects → jenkinsci → build-time-blame-plugin

jenkinsci / build-time-blame-plugin

Licence: MIT license
A Jenkins plugin for analyzing the historical console output of a Job with the goal of determining which steps are taking the most time.

Programming Languages

groovy
2714 projects

Projects that are alternatives of or similar to build-time-blame-plugin

nexus-platform-plugin
Nexus Platform Plugin for Jenkins
Stars: ✭ 25 (-7.41%)
Mutual labels:  jenkins-plugin
pipeline-github-plugin
Pipeline: GitHub
Stars: ✭ 151 (+459.26%)
Mutual labels:  jenkins-plugin
artifact-promotion-plugin
A simple Jenkins plugin to promote artifacts.
Stars: ✭ 29 (+7.41%)
Mutual labels:  jenkins-plugin
configuration-as-code-groovy-plugin
Extension for Jenkins Configuration-as-Code plugin that allows running Groovy scripts
Stars: ✭ 39 (+44.44%)
Mutual labels:  jenkins-plugin
cmakebuilder-plugin
Jenkins CMake plugin
Stars: ✭ 16 (-40.74%)
Mutual labels:  jenkins-plugin
build-user-vars-plugin
Set of environment variables that describe the user who started the build
Stars: ✭ 40 (+48.15%)
Mutual labels:  jenkins-plugin
Ec2 Plugin
Jenkins ec2 plugin
Stars: ✭ 246 (+811.11%)
Mutual labels:  jenkins-plugin
aliyun-oss-uploader-plugin
Aliyun/AliCloud OSS uploader
Stars: ✭ 26 (-3.7%)
Mutual labels:  jenkins-plugin
configuration-as-code-secret-ssm-plugin
AWS SSM Plugin for Jenkins Configuration as Code
Stars: ✭ 22 (-18.52%)
Mutual labels:  jenkins-plugin
ssh-slaves-plugin
SSH Build Agents Plugin for Jenkins
Stars: ✭ 90 (+233.33%)
Mutual labels:  jenkins-plugin
badge-plugin
Jenkins Badge plugin
Stars: ✭ 29 (+7.41%)
Mutual labels:  jenkins-plugin
Tanaguru
Automated accessibility (a11y) testing tool, with emphasis on reliablity and automation
Stars: ✭ 116 (+329.63%)
Mutual labels:  jenkins-plugin
workflow-scm-step-plugin
plugins.jenkins.io/workflow-scm-step
Stars: ✭ 39 (+44.44%)
Mutual labels:  jenkins-plugin
seleniumhtmlreport-plugin
Hudson plugin for selenium reports
Stars: ✭ 18 (-33.33%)
Mutual labels:  jenkins-plugin
script-security-plugin
Allows Jenkins admins to control what in-process scripts can be run by users
Stars: ✭ 56 (+107.41%)
Mutual labels:  jenkins-plugin
Warnings Ng Plugin
Jenkins Warnings Plugin - Next Generation
Stars: ✭ 248 (+818.52%)
Mutual labels:  jenkins-plugin
pipeline-as-yaml-plugin
Jenkins Pipeline As Yaml Plugin
Stars: ✭ 111 (+311.11%)
Mutual labels:  jenkins-plugin
mailer-plugin
This plugin allows you to configure email notifications for build results
Stars: ✭ 35 (+29.63%)
Mutual labels:  jenkins-plugin
ecutest-plugin
This plugin integrates Jenkins with ECU-TEST and generates reports on automated test execution.
Stars: ✭ 23 (-14.81%)
Mutual labels:  jenkins-plugin
upload-pgyer-plugin
jenkins-upload-pgyer-plugin
Stars: ✭ 80 (+196.3%)
Mutual labels:  jenkins-plugin

Build Time Blame Plugin

A Jenkins plugin for analyzing the historical console output of a Job with the goal of determining which steps are taking the most time.

Requirements:

What it does:

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.

The plugin produces:

  • A Build Time Trend graph showing what portion of the total build time each step has taken over the scanned builds. Build Time Trend

  • 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. Last Successful Build Times

  • A Mean Successful Build Times table showing the mean amount of time each step has taken across all successful builds.

    Mean Successful Build Times

How to use it:

  1. Install Plugin

  2. Restart Jenkins

  3. Each job will now have a new action:

    Build Time Blame Report

  4. Enable Timestamps for any jobs you want to analyze (the report will only include results for builds where this plugin was enabled):

    Timestamper Plugin

  5. The report will be pre-populated with regex to denote the start and end of the job:

    Timestamper Plugin

  6. Add/Update regex statements to match parts of the build process.

    • Regex Search Key: Lines in the console output that match this regex string will be added to the report. Any leading or trailing spaces will be excluded before checking if the rest of the line matches the regex. These keys should match when the particular step has begun. Make sure to add another match for when that step is complete or the next begins to get the correct elapsed time in the report.
    • Label: The matches will be shown with this label in the report.
    • Only Use First Match: If this box is checked, the search key will not be checked against after the first line it matches.
  7. (Optional) Set a limit on the "Maximum Builds To Process"

    • By default, the logs for all successfully completed builds will be scanned. For some jobs with long logs or many builds, limiting the report may allow it to load more quickly.
  8. 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.

  9. 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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].