Find plugins

Compress Build Log1.2Minimum Jenkins requirement: 2.7.4ID: compress-buildlog

Installs: 543
Last released: 3 months ago
Daniel Beck

Plugin Information

Plugin ID



In Latest Release
Since Latest Release

Latest Release
Latest Release Date
Required Core

1.2 (archives)
Aug 13, 2017
structs (version:1.6)

Source Code
Issue Tracking
Pull Requests

Open Issues
Pull Requests
Daniel Beck (id: danielbeck)



2016-Nov 422
2016-Dec 423
2017-Jan 449
2017-Feb 467
2017-Mar 470
2017-Apr 470
2017-May 522
2017-Jun 495
2017-Jul 491
2017-Aug 514
2017-Sep 530
2017-Oct 543


The Compress Build Log Plugin allows to configure jobs to have their build logs compressed. For a long time, Jenkins has supported showing gzipped build logs on the UI and through its APIs, but had no facility to compress build logs. This plugin implements that.

Configuring build log compression

In a job configuration, check "Compress Build Log" and save. You're done! From then on, when builds finish, their build log will be compressed to a log.gz file, after which the original log file will be removed. Jenkins will transparently access the log.gz file when the build log is viewed or downloaded.

Pipeline Compatibility

From version 1.1, the Compress Build Log Plugin supports compressing full pipeline build logs, but not the per-step build logs stored separately.

It can be configured either through the UI, or by adding compressBuildLog() to the properties() defined in the Pipeline DSL or Jenkinsfile.

Changes effective immediately

Due to how this plugin is implemented, the change to the property will be effective immediately, so that the current build's log will be compressed after it completes. This is different from some other properties that only take effect for subsequent builds (e.g. defining build parameters).

Known Issues

Some plugins may assume that the build log is a text file and just append to it. If that happens after this plugin rewrites the build log, the log.gz file will contain invalid contents. Examples:

JENKINS-24171 - Getting issue details... STATUS


Version 1.2 (2017-08-14)

  • Requires Jenkins 2.7.4
  • Add support for compressing full Pipeline build logs (but not per-step logs)
  • Add compressBuildLog() symbol for use in Pipeline DSL
  • Add support for compressing the logs of matrix configuration builds (i.e. those doing the actual work)

Version 1.1 – release was skipped

Version 1.0 (2014-10-13)

  • Initial release to address the request JENKINS-2551 - Getting issue details... STATUS
ArchivesGet past versions