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

email-ext - Content Token Reference not being set in email

    Details

    • Type: Bug
    • Status: Fixed but Unreleased (View Workflow)
    • Priority: Critical
    • Resolution: Not A Defect
    • Component/s: email-ext-plugin
    • Labels:
    • Environment:
      Jenkins version 2.150.2
      email-ext version 2.56
      Windows Server 2012 R2 Standard
      java.version 1.8.0_144
    • Similar Issues:

      Description

      When a job fails an editable email notification is configured to send details as per the default system configurations. This is not happening. These email are being delivered with the tokens not being replaced and it appears they are coming through as a string or text.

       

      Sample email format being recieved:

      Subject: $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!

      Content:

      $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:

      Check console output at $BUILD_URL to view the results.

       

      Feb 06, 2019 7:01:50 PM hudson.plugins.emailext.plugins.ContentBuilder transformText
      SEVERE: null
      java.lang.RuntimeException: Error creating extended parser class: No constructor found for class org.jenkinsci.plugins.tokenmacro.Parser$$parboiled and the given 5 arguments
      at org.parboiled.Parboiled.createParser(Parboiled.java:58)
      at org.jenkinsci.plugins.tokenmacro.Parser.process(Parser.java:80)
      at org.jenkinsci.plugins.tokenmacro.Parser.process(Parser.java:74)
      at org.jenkinsci.plugins.tokenmacro.TokenMacro.expand(TokenMacro.java:199)
      at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:237)
      at hudson.plugins.emailext.plugins.ContentBuilder.transformText(ContentBuilder.java:80)
      at hudson.plugins.emailext.EmailRecipientUtils.getRecipientList(EmailRecipientUtils.java:186)
      at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:670)
      at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:355)
      at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:345)
      at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:253)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
      at hudson.model.Build$BuildExecution.cleanUp(Build.java:196)
      at hudson.model.Run.execute(Run.java:1857)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:429)
      Caused by: org.parboiled.errors.GrammarException: No constructor found for class org.jenkinsci.plugins.tokenmacro.Parser$$parboiled and the given 5 arguments
      at org.parboiled.common.Utils.findConstructor(Utils.java:294)
      at org.parboiled.Parboiled.createParser(Parboiled.java:55)
      ... 18 more

        Attachments

          Activity

          Hide
          oldmetz David Metzer added a comment -

          This was not a defect - a missing plugin was the culprit - Token Macro to be precise perhaps this could be added to the list of depencancies to avoid this happening in future.

          Show
          oldmetz David Metzer added a comment - This was not a defect - a missing plugin was the culprit - Token Macro to be precise perhaps this could be added to the list of depencancies to avoid this happening in future.

            People

            • Assignee:
              oldmetz David Metzer
              Reporter:
              oldmetz David Metzer
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: