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

Adding attachments causes duplicate attachments to be added

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • email-ext-plugin
    • None
    • Oracle Linux 6 (64 Bit) running on Tomcat 8 (JDK 1.8.0_101)
      Jenkins: 2:20
      Email Ext Plugin: 2.4.7

      Various other plugins (can add a list if needed).

      Hey guys,

      I've been using the Email Ext. plugin for quite some time, but just set up a script that uses Selenium to test the deployed applications to make sure the deployment happened correctly and the correct version has been deployed. I then have it take a snapshot of the about page on our application, which the script then copies back to the Jenkins server and drops them into a "screenshots" folder under the workspace folder. All of this works without a hitch, but then I have the Email Ext. plugin set to use the following directory for attachments:

      screenshots/

      This folder has from one to 3 screenshots in it, named according to which server it was pulled from. The problem is that each attachment is added to the email twice - so when we get the email from Jenkins stated that it was built (along with some various information it gleans from the build, the deployments, and the application.properties file), it has two of each screenshot attached to the email (as can be seen in the screenshot attached to this). There are only 3 screenshots in that directory, but it adds each one twice, so I have a total of 7 attachments - the 3 I'm supposed to have, the 3 that are duplicates, and the build log.

      I've not figured a way around this, so am not sure why this is happening, but I'd definitely like to figure out why so that I can make sure our team is getting accurate information without all of the duplicates.

      Let me know if you have any questions that I haven't answered.

      Thanks.

            davidvanlaatum David van Laatum
            mandrake981 Randall Hobbs
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: