Jenkins Web FE: Disable linebreak?

42 views
Skip to first unread message

Jan-Benedict Glaw

unread,
Apr 21, 2026, 12:06:05 PMApr 21
to jenkins...@googlegroups.com
Hi!

I've setup Jenkins, with ~ 2k jobs to build GCC, glibc, Binutils,
NetBSD, crosstool-NG, buildroot etc. It's using several builders,
usually starting Docker containers (or VMs to build NetBSD natively
within NetBSD to get even wider reproducibility comparisons.)

With an older Jenkins version, I had a hack (found somewhere) to
disable console output line wraps, but (minimized) CSS files changed
to the point I cannot easily reproduce the same result with today's
Jenkins versions.

As I'm not at all into CSS, I would be grateful if somebody could
give me some hint (eg. a `sed` command or the like) to have a
horizontal scrollbar instead of wrapped long lines.

Thanks a lot!
Jan-Benedict

--
signature.asc

Jan-Benedict Glaw

unread,
Apr 21, 2026, 12:06:09 PMApr 21
to jenkins...@googlegroups.com
Answering myself: It seems this does do the job:

sed -i -e 's/white-space:pre-wrap//' /var/cache/jenkins/war/jsbundles/styles.css

Maybe it would be feasible to make this configurable? Or to include
another CSS file (empty by default) to allow site admins to fiddle
with it? Or are there better ways of doing it?

Thanks,
Jan-Benedict
--
signature.asc
Message has been deleted

geoffroy...@gmail.com

unread,
Apr 24, 2026, 12:08:35 PMApr 24
to Jenkins Users
Hello
we use the plugin https://plugins.jenkins.io/simple-theme-plugin/ to load a custom css (stored in /userContent folder).
Maybe it could be of any use, we only use it to "pimp" the top bar so not sure it would work on console output...
For the CSS syntax, just ask any AI tool

Jan-Benedict Glaw

unread,
Apr 27, 2026, 5:49:31 PMApr 27
to jenkins...@googlegroups.com
On Wed, 2026-04-22 00:16:58 -0700, geoffroy...@gmail.com <geoffroy...@gmail.com> wrote:
> On Tuesday, 21 April 2026 at 18:06:09 UTC+2 jbg...@lug-owl.de wrote:
> > On Sat, 2026-04-18 19:46:22 +0200, Jan-Benedict Glaw <jbg...@lug-owl.de> > wrote:
> > > I've setup Jenkins, with ~ 2k jobs to build GCC, glibc, Binutils,
> > > NetBSD, crosstool-NG, buildroot etc. It's using several builders,
> > > usually starting Docker containers (or VMs to build NetBSD natively
> > > within NetBSD to get even wider reproducibility comparisons.)
> > > horizontal scrollbar instead of wrapped long lines.
[...]
> > Answering myself: It seems this does do the job:
> >
> > sed -i -e 's/white-space:pre-wrap//' /var/cache/jenkins/war/jsbundles/styles.css
>
> we use the plugin https://plugins.jenkins.io/simple-theme-plugin/ to load a
> custom css (stored in /userContent folder).

That's a good tip. Installed the "Simple Theme" plugin, then went to
Settings -> Appearance -> Customizable theme and added one piece of
Extra CSS:

pre {
white-space: pre !important;
}


That does the job.

Thanks a lot!

MfG, JBG

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