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

groovy templates do not work after upgrading to 2.40

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • email-ext-plugin
    • None

      we use many jobs sending email with groovy templates.
      after upgrading to 2.40 version of the plugin, we have this error (in the mail body):

      Groovy Template file [test.groovy] was not found in $JENKINS_HOME/email-templates.

      we have in the default content: ${SCRIPT, template="test.groovy"}

        1. jenkins_home_cfg.png
          jenkins_home_cfg.png
          24 kB
        2. mail_result.png
          mail_result.png
          11 kB
        3. screenshot-1.png
          screenshot-1.png
          35 kB
        4. screenshot-2.png
          screenshot-2.png
          39 kB
        5. screenshot-3.png
          screenshot-3.png
          25 kB

          [JENKINS-28202] groovy templates do not work after upgrading to 2.40

          Alex Earl added a comment -

          In the subject you list 2.40, but in the comment you only list 2.39. Which version are you actually using?

          Alex Earl added a comment - In the subject you list 2.40, but in the comment you only list 2.39. Which version are you actually using?

          sory, i was cloning an existing a previous issue.
          all is now up to date

          Raphaël UNIQUE added a comment - sory, i was cloning an existing a previous issue. all is now up to date

          Alex Earl added a comment -

          Can you verify the value of JENKINS_HOME?

          Alex Earl added a comment - Can you verify the value of JENKINS_HOME?

          verified: screenshot-3.png
          JENKINS_HOME=/appli/jenkins

          Raphaël UNIQUE added a comment - verified: screenshot-3.png JENKINS_HOME=/appli/jenkins

          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/d5af533cb9ccb1d91be01d76738263fd6b4f24df
          Log:
          Fix JENKINS-28202

          Fixed check for file extension

          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/d5af533cb9ccb1d91be01d76738263fd6b4f24df Log: Fix JENKINS-28202 Fixed check for file extension

          Alex Earl added a comment -

          Fixed issue with check for file extension.

          Alex Earl added a comment - Fixed issue with check for file extension.

          Jon Starbird added a comment - - edited

          When Jenkins-28202 was fixed for Groovy it seems to have broken Jelly. See Jenkins-28357 for the Jelly bug.

          Jon Starbird added a comment - - edited When Jenkins-28202 was fixed for Groovy it seems to have broken Jelly. See Jenkins-28357 for the Jelly bug.

            slide_o_mix Alex Earl
            raphael_unique Raphaël UNIQUE
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: