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

Custom Jelly Content for email-ext plugin - for sending nice custom messages

    Details

    • Similar Issues:

      Description

      Hi,

      My colleague and I have developed a CustomJellyContent class that parses a jelly script file and is able to produce beautiful custom content for Hudson emails.

      I prepared a patch that can be applied to email-ext plugin - it contains one java class and two sample jelly templates. The templates should be placed in email-templates folder in hudson home directory (the help text for the CUSTOM tag that is introduced contains all the documentation needed).

      I tested the class with email-ext 2.9-SNAPSHOT and hudson 1.367.

      But there is one big but: How can I add attachments to this New Feature request?

      Thanks and regards,
      Dorota.

        Attachments

        1. CustomJellyContent.patch
          20 kB
        2. html.jpg
          html.jpg
          155 kB
        3. txt.jpg
          txt.jpg
          136 kB

          Activity

          Hide
          btosabre btosabre added a comment -

          It's Dorota again - I'm using more powerful account that belongs to my team to add attachments. The attachments are: the patch and two email samples.

          Show
          btosabre btosabre added a comment - It's Dorota again - I'm using more powerful account that belongs to my team to add attachments. The attachments are: the patch and two email samples.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : ashlux
          Path:
          trunk/hudson/plugins/email-ext/pom.xml
          trunk/hudson/plugins/email-ext/src/main/java/hudson/plugins/emailext/EmailExtensionPlugin.java
          trunk/hudson/plugins/email-ext/src/main/java/hudson/plugins/emailext/plugins/content/JellyScriptContent.java
          trunk/hudson/plugins/email-ext/src/main/resources/hudson/plugins/emailext/templates/html.jelly
          trunk/hudson/plugins/email-ext/src/main/resources/hudson/plugins/emailext/templates/text.jelly
          trunk/hudson/plugins/email-ext/src/test/java/hudson/plugins/emailext/plugins/content/JellyScriptContentTest.java
          http://jenkins-ci.org/commit/35116
          Log:
          JENKINS-7514 Add initial support for Jelly scripts. Just html and text for now.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : ashlux Path: trunk/hudson/plugins/email-ext/pom.xml trunk/hudson/plugins/email-ext/src/main/java/hudson/plugins/emailext/EmailExtensionPlugin.java trunk/hudson/plugins/email-ext/src/main/java/hudson/plugins/emailext/plugins/content/JellyScriptContent.java trunk/hudson/plugins/email-ext/src/main/resources/hudson/plugins/emailext/templates/html.jelly trunk/hudson/plugins/email-ext/src/main/resources/hudson/plugins/emailext/templates/text.jelly trunk/hudson/plugins/email-ext/src/test/java/hudson/plugins/emailext/plugins/content/JellyScriptContentTest.java http://jenkins-ci.org/commit/35116 Log: JENKINS-7514 Add initial support for Jelly scripts. Just html and text for now.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : ashlux
          Path:
          trunk/hudson/plugins/email-ext/src/main/java/hudson/plugins/emailext/plugins/content/JellyScriptContent.java
          trunk/hudson/plugins/email-ext/src/main/java/hudson/plugins/emailext/plugins/content/JellyScriptContentBuildWrapper.java
          http://jenkins-ci.org/commit/35226
          Log:
          JENKINS-7514 Extract BuildWrapper class.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : ashlux Path: trunk/hudson/plugins/email-ext/src/main/java/hudson/plugins/emailext/plugins/content/JellyScriptContent.java trunk/hudson/plugins/email-ext/src/main/java/hudson/plugins/emailext/plugins/content/JellyScriptContentBuildWrapper.java http://jenkins-ci.org/commit/35226 Log: JENKINS-7514 Extract BuildWrapper class.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : ashlux
          Path:
          trunk/hudson/plugins/email-ext/src/main/java/hudson/plugins/emailext/plugins/content/JellyScriptContent.java
          trunk/hudson/plugins/email-ext/src/test/java/hudson/plugins/emailext/plugins/content/JellyScriptContentTest.java
          trunk/hudson/plugins/email-ext/src/test/resources/hudson/plugins/emailext/templates/empty-template-on-classpath.jelly
          http://jenkins-ci.org/commit/35244
          Log:
          JENKINS-7514 Add support for custom scripts. Custom scripts should be placed into $HUDSON_HOME/email-templates.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : ashlux Path: trunk/hudson/plugins/email-ext/src/main/java/hudson/plugins/emailext/plugins/content/JellyScriptContent.java trunk/hudson/plugins/email-ext/src/test/java/hudson/plugins/emailext/plugins/content/JellyScriptContentTest.java trunk/hudson/plugins/email-ext/src/test/resources/hudson/plugins/emailext/templates/empty-template-on-classpath.jelly http://jenkins-ci.org/commit/35244 Log: JENKINS-7514 Add support for custom scripts. Custom scripts should be placed into $HUDSON_HOME/email-templates.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : ashlux
          Path:
          trunk/hudson/plugins/email-ext/src/main/java/hudson/plugins/emailext/plugins/content/JellyScriptContent.java
          http://jenkins-ci.org/commit/35245
          Log:
          [FIXED JENKINS-7514] Clean up help text.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : ashlux Path: trunk/hudson/plugins/email-ext/src/main/java/hudson/plugins/emailext/plugins/content/JellyScriptContent.java http://jenkins-ci.org/commit/35245 Log: [FIXED JENKINS-7514] Clean up help text.
          Hide
          annetheagile AnneTheAgile added a comment -

          As of today, searching for 'CustomJellyContent' in https://github.com/jenkinsci/email-ext-plugin/tree/master/src/main/resources/hudson/plugins/emailext/templates yields no hits.

          So perhaps this patch was refactored?

          Show
          annetheagile AnneTheAgile added a comment - As of today, searching for 'CustomJellyContent' in https://github.com/jenkinsci/email-ext-plugin/tree/master/src/main/resources/hudson/plugins/emailext/templates yields no hits. So perhaps this patch was refactored?
          Hide
          rd31419 Ras Dama added a comment -

          CHANGE SET is not working
          Do we have any updated module for identifying change sets.

          Show
          rd31419 Ras Dama added a comment - CHANGE SET is not working Do we have any updated module for identifying change sets.

            People

            • Assignee:
              ashlux ashlux
              Reporter:
              dorota_p dorota_p
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: