JJB: Allow for log compression?

0 views
Skip to first unread message

Jan-Benedict Glaw

unread,
Feb 9, 2026, 5:54:34 AM (11 days ago) Feb 9
to jenkins-j...@googlegroups.com
Hi!

As some of my projects generate a log of output (larger than 500 MB),
I'd like to use the "Compress Build Log Plug", which (despite being in
search for a new maintainer) seems to do it's job.

It does not seem to be considered by JJB. The needed configuration
is simple:

<?xml version='1.1' encoding='UTF-8'?>
<project>
<properties>
<org.jenkinsci.plugins.compressbuildlog.BuildLogCompressor plugin="compress-buildlog@1.2"/>


So it's just one line being added to the configuration. However, it
seems there isn't a way right now to emit that single XML element.

As I have yet to understand the inner structure of JJB, I'd try to add
support for that somewhere. I *guess* it's just to add

job/job-template:
compress-log: true

...and then have something like:

if (??):
XML.SubElement(xml_parent, "org.jenkinsci.plugins.compressbuildlog.BuildLogCompressor")


(Where does the `plugin="compress-buildlog@1.2"` part come from?)

I've looked at how timestamps (in wrappers) are handled. There is a
method called `timestamps`, but I fail to see where it is invoked.

It *seems* that is called because a yaml property of the same name
exists. But in YAML, we don't have "properties", but "parameters"
(which are then rendered into a sub-node within properties.)

Alas, I would be helpful for some advice here.


Thanks,
Jan-Benedict

--
signature.asc
Reply all
Reply to author
Forward
0 new messages