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

Email Template Testing can't find passed Jelly script file

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: email-ext-plugin
    • Labels:
      None
    • Environment:
      OS: Windows 7
      Jenkins: 1.516
      Email-ext: 2.30.2
    • Similar Issues:

      Description

      Newly implemented Email Template Testing feature doesn't work for Jelly scripts.

      If name of template file is passed with extension following error occurs:

      Jelly script [myscript.jelly] was not found in $JENKINS_HOME/email-templates.

      If name of template file is passed without extension following error occurs:

      Template [myscript] was not found in $JENKINS_HOME/email-templates.

      additionally a validation error is shown:

      The file 'myscript' does not exist

      The problem is that EmailExtTemplateAction.doTemplateFileCheck() and EmailExtTemplateAction.renderTemplate() methods expect that template name includes extension. But JellyScriptContent.getTemplateInputStream() expects that template name doesn't contains extension.

        Attachments

          Activity

          ddbear Volodja Medvid created issue -
          ddbear Volodja Medvid made changes -
          Field Original Value New Value
          Summary Email Template Testing can't find passed script file Email Template Testing can't find passed Jelly script file
          ddbear Volodja Medvid made changes -
          Description Newly implemented Email Template Testing feature doesn't work.
          If name of template file is passed with extension following error occurs:

          {noformat}Jelly script [myscript.jelly] was not found in $JENKINS_HOME/email-templates.{noformat}

          If name of template file is passed without extension following error occurs:

          {noformat}Template [myscript] was not found in $JENKINS_HOME/email-templates.{noformat}

          additionally a validation error is shown:

          {noformat}The file 'myscript' does not exist{noformat}

          The problem is that {{EmailExtTemplateAction.doTemplateFileCheck()}} and {{EmailExtTemplateAction.renderTemplate()}} methods expect that template name includes extension. But {{JellyScriptContent.getTemplateInputStream()}} expects that template name doesn't contains extension.
          Newly implemented Email Template Testing feature doesn't work for Jelly scripts.

          If name of template file is passed with extension following error occurs:

          {noformat}Jelly script [myscript.jelly] was not found in $JENKINS_HOME/email-templates.{noformat}

          If name of template file is passed without extension following error occurs:

          {noformat}Template [myscript] was not found in $JENKINS_HOME/email-templates.{noformat}

          additionally a validation error is shown:

          {noformat}The file 'myscript' does not exist{noformat}

          The problem is that {{EmailExtTemplateAction.doTemplateFileCheck()}} and {{EmailExtTemplateAction.renderTemplate()}} methods expect that template name includes extension. But {{JellyScriptContent.getTemplateInputStream()}} expects that template name doesn't contains extension.
          slide_o_mix Alex Earl made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 149455 ] JNJira + In-Review [ 193134 ]

            People

            • Assignee:
              slide_o_mix Alex Earl
              Reporter:
              ddbear Volodja Medvid
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: