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

Allow email-ext to attach files to emails

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      It would be useful if this plugin could produce emails with file attachments. One way to do it would be to be able to specify a config file in the workspacethat would have lines of this form:

      filename, mime_type, description

      If there is no description, the filename would be used.

      If this file was missing from the workspace there would be no attachments.

        Attachments

          Issue Links

            Activity

            Hide
            farshidce farshidce added a comment - - edited

            I like this feature request. It s a good idea to attach let's say maybe a screenshot or a report.txt which the job creates.
            I can see the use cases which could help us in the past where we wanted to incorporate more information and files to the email generated.

            I am going to implement this to be able to choose one of the artifacts to attach to the email only if the size is less than some standard 2 or 4mb or sth.

            probably this also helps those users in the company who dont have access to vpn network or they want to see the summary without logging in to jenkins

            Show
            farshidce farshidce added a comment - - edited I like this feature request. It s a good idea to attach let's say maybe a screenshot or a report.txt which the job creates. I can see the use cases which could help us in the past where we wanted to incorporate more information and files to the email generated. I am going to implement this to be able to choose one of the artifacts to attach to the email only if the size is less than some standard 2 or 4mb or sth. probably this also helps those users in the company who dont have access to vpn network or they want to see the summary without logging in to jenkins
            Hide
            farshidce farshidce added a comment -

            assigning it back to the reporter for comments/feedback on my proposal to fix this bug

            Show
            farshidce farshidce added a comment - assigning it back to the reporter for comments/feedback on my proposal to fix this bug
            Hide
            slide_o_mix Alex Earl added a comment -

            I have an implementation of this, I don't do any size checking right now, not sure if that is required. I use the ant-style file selection patterns to allow attaching multiple files by patterns. Please comment on if this is acceptable.

            Show
            slide_o_mix Alex Earl added a comment - I have an implementation of this, I don't do any size checking right now, not sure if that is required. I use the ant-style file selection patterns to allow attaching multiple files by patterns. Please comment on if this is acceptable.
            Hide
            slide_o_mix Alex Earl added a comment -

            Added size checking in the global config. https://github.com/jenkinsci/email-ext-plugin/pull/12

            Show
            slide_o_mix Alex Earl added a comment - Added size checking in the global config. https://github.com/jenkinsci/email-ext-plugin/pull/12
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: slide_o_mix
            Path:
            src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java
            src/main/java/hudson/plugins/emailext/ExtendedEmailPublisherDescriptor.java
            src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.jelly
            src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.properties
            src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/global.jelly
            src/main/webapp/help/globalConfig/maxAttachmentSize.html
            src/main/webapp/help/projectConfig/attachments.html
            src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java
            http://jenkins-ci.org/commit/email-ext-plugin/a27a81bc079ae69cf01baeb609b4408c77e6eeb3
            Log:
            Implementing attachments (JENKINS-9018)

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: slide_o_mix Path: src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java src/main/java/hudson/plugins/emailext/ExtendedEmailPublisherDescriptor.java src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.jelly src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.properties src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/global.jelly src/main/webapp/help/globalConfig/maxAttachmentSize.html src/main/webapp/help/projectConfig/attachments.html src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java http://jenkins-ci.org/commit/email-ext-plugin/a27a81bc079ae69cf01baeb609b4408c77e6eeb3 Log: Implementing attachments ( JENKINS-9018 )
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: slide
            Path:
            src/main/java/hudson/plugins/emailext/AttachmentUtils.java
            src/main/java/hudson/plugins/emailext/EmailType.java
            src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java
            src/main/java/hudson/plugins/emailext/ExtendedEmailPublisherDescriptor.java
            src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.jelly
            src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.properties
            src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/global.jelly
            src/main/webapp/help/globalConfig/maxAttachmentSize.html
            src/main/webapp/help/projectConfig/attachments.html
            src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java
            http://jenkins-ci.org/commit/email-ext-plugin/31cf48c1abc1a55ff80f50e369006f9ab1c7e834
            Log:
            Merge pull request #15 from slide/JENKINS-9018

            Implementing attachments (JENKINS-9018)

            Compare: https://github.com/jenkinsci/email-ext-plugin/compare/d13efd0...31cf48c

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: slide Path: src/main/java/hudson/plugins/emailext/AttachmentUtils.java src/main/java/hudson/plugins/emailext/EmailType.java src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java src/main/java/hudson/plugins/emailext/ExtendedEmailPublisherDescriptor.java src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.jelly src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.properties src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/global.jelly src/main/webapp/help/globalConfig/maxAttachmentSize.html src/main/webapp/help/projectConfig/attachments.html src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java http://jenkins-ci.org/commit/email-ext-plugin/31cf48c1abc1a55ff80f50e369006f9ab1c7e834 Log: Merge pull request #15 from slide/ JENKINS-9018 Implementing attachments ( JENKINS-9018 ) Compare: https://github.com/jenkinsci/email-ext-plugin/compare/d13efd0...31cf48c
            Show
            sogabe sogabe added a comment - fixed. https://github.com/jenkinsci/email-ext-plugin/commit/a27a81bc079ae69cf01baeb609b4408c77e6eeb3

              People

              • Assignee:
                pgweiss pgweiss
                Reporter:
                pgweiss pgweiss
              • Votes:
                8 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: