HTML in Jenkins job descriptions

HtmlJenkins

Html Problem Overview


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?

Html Solutions


Solution 1 - Html

In the Global security menu:

enter image description here

Select this value to display HTML:

enter image description here

Solution 2 - Html

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser1587852View Question on Stackoverflow
Solution 1 - HtmlBruno LavitView Answer on Stackoverflow
Solution 2 - HtmlGergely SzalayView Answer on Stackoverflow