user1587852
user1587852

Reputation: 1617

HTML in Jenkins job descriptions

I have two Jenkins instances running. An old (legacy) one at version 1.614 and a new one with 1.633.

In the old one it is possible to use HTML in the job description (it even does syntax highlighting editing it). The new one doesn't. HTML content is escaped and shown as plain text. I could not find a change in the release notes explaining this behavior. Is there a configuration that I'm missing?

Upvotes: 149

Views: 98083

Answers (2)

Gergely Szalay
Gergely Szalay

Reputation: 21

For enabling it via config: you have to install the configuration as code (CASC) plugin (https://plugins.jenkins.io/configuration-as-code/) , and add the following entries to your config file(s - I guess, it is better to have multiple files for a better overview):

    markupFormatter:
      rawHtml:
        disableSyntaxHighlighting: false

If you don't need highlighting, change it to true

Upvotes: 2

Bruno Lavit
Bruno Lavit

Reputation: 10382

In the Global security menu:

enter image description here

Select this value to display HTML:

enter image description here

Upvotes: 323

Related Questions