Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-66098

Newlines are not preserved in BFA failure cause descriptions on build summary page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • Build Failure Analyzer Plugin version: 2.0.0, 1.27.1
      Jenkins version: CloudBees Jenkins Enterprise 2.277.4.3-rolling

      Problem

      Newlines present in the Build Failure Analyzer Plugin's Failure Cause "Description" field are no longer being displayed in the "Identified Problems" section of the build summary page. Instead, everything is collapsed into a single line. The newlines are saved and retained in the ${JENKINS_HOME}/build-failure-analyzer.xml file, they're just not displayed correctly.

      I believe this regression happened when we upgraded Jenkins from v2.277.3.1 to v2.277.4.3. Installing an earlier version of the BFA plugin does not fix the issue, so I suspect it's a change in Jenkins itself causing the problem.

      This bug also affects the Token Macro integration: we pass failure causes to an email-ext email and the newlines are also lost there.

      There is no known workaround. This bug makes all but the most simple failure cause descriptions useless, especially those using placeholder substitution to inject sections of the build log into the description

      I have not yet tried to reproduce this in a pristine Jenkins installation but I plan to do that when time allows

      Screenshots

      • ${JENKINS_HOME}/build-failure-analyzer.xml
      • Failure Cause
      • Identified Problems
      • Token Macro email
      • Token Macro email before the regression

            t_westling Tomas Westling
            egherrmann Eric Herrmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: