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

groovy templates do not work after upgrading to 2.40

    XMLWordPrintable

Details

    Description

      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"}

      Attachments

        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

        Issue Links

          Activity

            slide_o_mix 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?

            slide_o_mix 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

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

            Can you verify the value of JENKINS_HOME?

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

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

            raphael_unique 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_issue_link 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
            slide_o_mix Alex Earl added a comment -

            Fixed issue with check for file extension.

            slide_o_mix Alex Earl added a comment - Fixed issue with check for file extension.
            jstarbird 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.

            jstarbird 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.

            People

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

              Dates

                Created:
                Updated:
                Resolved: