• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • email-ext-plugin
    • None
    • Jenkins LTS 1.596.2, Plugin 2.40.1

      When using ${JELLY_SCRIPT,template="mod1.template"} I get the error that was reported about Groovy scripts for Jenkins-28202, Jelly file [mod1.template] was not found in $JENKINS_HOME/email-templates

      Nothing was changed in my environment and the file was used fine before. The file does exist and has the full filename of mod1.template.jelly but now it won't work.
      Doing a Test email and putting the full filename there it does find it in the correct location it is only when a build fires it off that this is failing.

        1. email-ext.hpi
          5.94 MB
        2. email-ext.jpi
          5.94 MB

          [JENKINS-28357] Cannot use Jelly Template after recent 2.40 fix

          Jon Starbird added a comment -

          Yes. Then I was entering in the email settings as ${JELLY_SCRIPT, template="mod1.template"} until I updated to 2.40.1 but the file in email-templates folder has always had the full name with extension.

          Jon Starbird added a comment - Yes. Then I was entering in the email settings as ${JELLY_SCRIPT, template="mod1.template"} until I updated to 2.40.1 but the file in email-templates folder has always had the full name with extension.

          Alex Earl added a comment -

          Ok, I had misunderstood that part. I know why this is happening and can reproduce the problem and should have a fix soon. Sorry for the runaround!

          Alex Earl added a comment - Ok, I had misunderstood that part. I know why this is happening and can reproduce the problem and should have a fix soon. Sorry for the runaround!

          Jon Starbird added a comment -

          No problem. Glad it got figured out.

          Jon Starbird added a comment - No problem. Glad it got figured out.

          Alex Earl added a comment -

          If you are willing, can you try the version I attached? You'll have to install via the advanced area in the plugin manager.

          Alex Earl added a comment - If you are willing, can you try the version I attached? You'll have to install via the advanced area in the plugin manager.

          Jon Starbird added a comment -

          Yep that fixes the issue.

          Jon Starbird added a comment - Yep that fixes the issue.

          Alex Earl added a comment -

          Great, I'll be releasing a 2.40.3 soon if I can get another fix checked.

          Alex Earl added a comment - Great, I'll be releasing a 2.40.3 soon if I can get another fix checked.

          Code changed in jenkins
          User: Alex Earl
          Path:
          src/main/java/hudson/plugins/emailext/plugins/content/AbstractEvalContent.java
          http://jenkins-ci.org/commit/email-ext-plugin/f72f226f83ffe6f06e38de00829b1db6e093af61
          Log:
          Fix JENKINS-28357

          If template doesn't exist, try with extension added.

          Compare: https://github.com/jenkinsci/email-ext-plugin/compare/2b0a93e32399...f72f226f83ff

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alex Earl Path: src/main/java/hudson/plugins/emailext/plugins/content/AbstractEvalContent.java http://jenkins-ci.org/commit/email-ext-plugin/f72f226f83ffe6f06e38de00829b1db6e093af61 Log: Fix JENKINS-28357 If template doesn't exist, try with extension added. Compare: https://github.com/jenkinsci/email-ext-plugin/compare/2b0a93e32399...f72f226f83ff

          Jon Starbird added a comment -

          btw Alex, huge thanks for jumping on this so quick! Great to see folks respond quickly to these open source projects, not all do.
          I know initially this was marked as a blocker issue but you kept at it even once a work around was achieved. So thanks for doing that.

          Jon Starbird added a comment - btw Alex, huge thanks for jumping on this so quick! Great to see folks respond quickly to these open source projects, not all do. I know initially this was marked as a blocker issue but you kept at it even once a work around was achieved. So thanks for doing that.

          Alex Earl added a comment -

          Glad to help!

          Alex Earl added a comment - Glad to help!

          Alex Earl added a comment -

          Resolved with 2.40.3

          Alex Earl added a comment - Resolved with 2.40.3

            slide_o_mix Alex Earl
            jstarbird Jon Starbird
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: