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

Regular expression replacements are always followed by a new line

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • email-ext-plugin
    • None

      I'm trying to append several items extracted from the console log, however each item is followed by a new line. I cannot see any way to prevent this. I would expect that when substText is used the new lines would need to be explicitly set.

      Example console:

      *** Application: Firefox 15.0a2
      *** Platform: Mac OS X 10.7.4 64bit

      Example tokens:

      ${BUILD_LOG_REGEX, regex="^\\*{3} Application: (.*)$", maxMatches=1, showTruncatedLines=false, substText="$1"} on ${BUILD_LOG_REGEX, regex="^\\*{3} Platform: (.*)$", maxMatches=1, showTruncatedLines=false, substText="$1"}

      Expected output:

      Firefox 15.0a2 on Mac OS X 10.7.4 64bit

      Actual output:

      Firefox 15.0a2
       on Mac OS X 10.7.4 64bit
      

            slide_o_mix Alex Earl
            davehunt Dave Hunt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: