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

Provide a default string for BUILD_LOG_REGEX if match is not found

    Details

    • Similar Issues:

      Description

      If no match is found the value returned by BUILD_LOG_REGEX is empty, which makes the resulting emails difficult to read. It would be great if we could provide a suitable default value. An example is given below:

      ${BUILD_LOG_REGEX, regex="^
      *

      {3}

      Application: (.*)$", maxMatches=1, showTruncatedLines=false, substText="$1", addNewline=false, noMatchText="UNKNOWN"}

        Attachments

          Activity

          Hide
          slide_o_mix Alex Earl added a comment -

          Added defaultValue parameter which will be used if there is no match found.

          Show
          slide_o_mix Alex Earl added a comment - Added defaultValue parameter which will be used if there is no match found.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Alex Earl
          Path:
          src/main/java/hudson/plugins/emailext/plugins/content/BuildLogRegexContent.java
          src/test/java/hudson/plugins/emailext/plugins/content/BuildLogRegexContentTest.java
          http://jenkins-ci.org/commit/email-ext-plugin/7bdb213ce94430654ae158377ba1ee3ea6ce102d
          Log:
          Fix JENKINS-16269

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alex Earl Path: src/main/java/hudson/plugins/emailext/plugins/content/BuildLogRegexContent.java src/test/java/hudson/plugins/emailext/plugins/content/BuildLogRegexContentTest.java http://jenkins-ci.org/commit/email-ext-plugin/7bdb213ce94430654ae158377ba1ee3ea6ce102d Log: Fix JENKINS-16269

            People

            • Assignee:
              slide_o_mix Alex Earl
              Reporter:
              davehunt Dave Hunt
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: