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

Error in substituting macro when sending email

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • email-ext-plugin
    • None
    • Jenkins 1.472 on RHEL 5 x86_64, email-ext 2.22

      On a failed build, the following message is shown in the build log when the build comes to sending email:

      Error substituting with token-macro plugin: org.jenkinsci.plugins.tokenmacro.MacroEvaluationException: Unrecognized macro 'ConnectionHandler' in '[here comes html mail filled template]'
      

      The email itself is sent to the recipients. The issue also does not occur on successful builds.

      It also seems that the issue is not always present for the failed builds. Sometimes mail goes without any errors. It also seems that this 'unrecognized macro' also varies; I just found another occurrence complaining about unrecognized 'AbstractBuildExecution'

      I am using globally configured email-ext with content: ${JELLY_SCRIPT, template="html"}

            slide_o_mix Alex Earl
            raspy Krzysztof Malinowski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: