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

BUILD_LOG_REGEX not replacing since plugin v2.0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • token-macro-plugin
    • None
    • Ubuntu 16.04 LTS
      Token macro plugin 2.0
      Jenkins 2.7.4 (standalone)
      Build name setter plugin 1.6.5
      OpenJDK 1.8.0

      Log line:

      <span class="timestamp"><b>14:58:18</b> </span>version: 1.0.0-SNAPSHOT
      

      Using the "build name setter" plugin:

      #${BUILD_NUMBER} - {GIT_BRANCH}/${GIT_REVISION,length=6}/${BUILD_LOG_REGEX, regex="^.*?version: (.*?)$", substText="$1", maxMatches=1, showTruncatedLines=false }
      

      Expected result (works with TMP 1.12.1):

      #42 - origin/master/21dbab/1.0.0-SNAPSHOT
      

      Actual result (using TMP 2.0):

      #42 - origin/master/21dbab/${BUILD_LOG_REGEX, regex="^.*?version: (.*?)$", substText="$1", maxMatches=1, showTruncatedLines=false }
      

            slide_o_mix Alex Earl
            devminded Daniel Sandberg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: