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

Email-ext templates no longer working. With the v2.2.77 the tempates are not loaded/used anymore. Last working version 2.66

    XMLWordPrintable

    Details

    • Similar Issues:

      Attachments

        Issue Links

          Activity

          Hide
          markewaite Mark Waite added a comment -

          Please provide a detailed description so that others can duplicate the problem you're seeing.

          I'm running Jenkins 2.277. The simple email notification that I've configured on job completion is working as expected. I'm able to open the job configuration, edit the email notification, save the configuration, and it sends email notification.

          Show
          markewaite Mark Waite added a comment - Please provide a detailed description so that others can duplicate the problem you're seeing. I'm running Jenkins 2.277. The simple email notification that I've configured on job completion is working as expected. I'm able to open the job configuration, edit the email notification, save the configuration, and it sends email notification.
          Hide
          claudiol Claudio Lezcano added a comment -

          I'm using the following syntax in my shared libraries and testing pipelines, both worked as expected in versions previous to v2.277:

          emailext body: '''${SCRIPT, template="groovy-html.template"}''',                        mimeType: 'text/html',                        subject: "${SUBJ}",          to: "manager@mailer.com",                         replyTo: "qa@mailer.com",                        recipientProviders: [[$class: 'FirstFailingBuildSuspectsRecipientProvider'], [$class: 'CulpritsRecipientProvider'], [$class: 'RequesterRecipientProvider']]

           

          the pipelines weren't changed, i just applied the upgrade to v2.77. The result was the body containing the literal value: 

          ${SCRIPT, template="groovy-html.template"}

          The template was not ijected anymore.

          The revert to v2.66 restored the functionality (Formatted mail with deploy status, changes, tests results).

           

           

          Show
          claudiol Claudio Lezcano added a comment - I'm using the following syntax in my shared libraries and testing pipelines, both worked as expected in versions previous to v2.277: emailext body: '''${SCRIPT, template="groovy-html.template"}''',                        mimeType: 'text/html',                        subject: "${SUBJ}",          to: "manager@mailer.com",                         replyTo: "qa@mailer.com",                        recipientProviders: [ [$class: 'FirstFailingBuildSuspectsRecipientProvider'] , [$class: 'CulpritsRecipientProvider'] , [$class: 'RequesterRecipientProvider'] ]   the pipelines weren't changed, i just applied the upgrade to v2.77. The result was the body containing the literal value:  ${SCRIPT, template="groovy-html.template"} The template was not ijected anymore. The revert to v2.66 restored the functionality (Formatted mail with deploy status, changes, tests results).    
          Hide
          basil Basil Crow added a comment -

          Duplicates JENKINS-64659.

          Show
          basil Basil Crow added a comment - Duplicates JENKINS-64659 .
          Hide
          laurin1 Keith Davis added a comment -

          I'm confused, both this issue and JENKINS-64659 Email extension templates not expanding environment variables - Jenkins Jira are resolved as Duplicate.

          Show
          laurin1 Keith Davis added a comment - I'm confused, both this issue and  JENKINS-64659 Email extension templates not expanding environment variables - Jenkins Jira are resolved as Duplicate .

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            claudiol Claudio Lezcano
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: