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

Add new content token BUILD_LOG_MULTILINE_REGEX, which allows regexes to match line terminators in build logs (in addition to all other characters), by matching against the full content of the build log.

    XMLWordPrintable

Details

    Description

      Content token BUILD_LOG_REGEX matches the given regex against each line of the build log.

      I propose to add a new content token BUILD_LOG_MULTILINE_REGEX, just like BUILD_LOG_REGEX, but with two modifications:

      1. Matches are against the full content of the build log, rather than line-at-a-time. As a result, the regex can recognize multiple log lines in a single match, either by direct specification, or using the DOTALL modifier, e.g. (?s:.*).
      2. No context arguments (linesBefore and linesAfter) - if the user wants this behavior, their regex can do the job.

      Attachments

        Activity

          sarowe Steve Rowe added a comment - See pull request https://github.com/jenkinsci/email-ext-plugin/pull/40
          slide_o_mix Alex Earl added a comment -

          Fixed in 2.22

          slide_o_mix Alex Earl added a comment - Fixed in 2.22
          sarowe Steve Rowe added a comment -

          Thanks!

          sarowe Steve Rowe added a comment - Thanks!

          People

            slide_o_mix Alex Earl
            sarowe Steve Rowe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: