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

save html file in build before sending

    Details

    • Similar Issues:

      Description

      before the email (html/txt) is sent out, the file could be saved in current build directory if needed.

      there are two use usage for this

      • check purpose, it could be checked whether the file sent out is correct or not, especially during debug the format (groovy template like), it can avoid wait for the real email in mailbox
      • archive for access in web, mostly newsletter had the statement "view in the browser", then when email is send out, there is a link to view it in web.

      Thank to consider this, not code yet

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Alex Earl
          Path:
          src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java
          src/main/java/hudson/plugins/emailext/ExtendedEmailPublisherDescriptor.java
          src/main/java/hudson/plugins/emailext/plugins/ContentBuilder.java
          src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.groovy
          src/main/webapp/help/projectConfig/saveOutput.html
          src/test/java/hudson/plugins/emailext/plugins/ContentBuilderTest.java
          http://jenkins-ci.org/commit/email-ext-plugin/7cabc47771efac843c6ac247ab657a9fc04d9059
          Log:
          Fixed JENKINS-13302

          Added option to save the output from the email in the workspace.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alex Earl Path: src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java src/main/java/hudson/plugins/emailext/ExtendedEmailPublisherDescriptor.java src/main/java/hudson/plugins/emailext/plugins/ContentBuilder.java src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.groovy src/main/webapp/help/projectConfig/saveOutput.html src/test/java/hudson/plugins/emailext/plugins/ContentBuilderTest.java http://jenkins-ci.org/commit/email-ext-plugin/7cabc47771efac843c6ac247ab657a9fc04d9059 Log: Fixed JENKINS-13302 Added option to save the output from the email in the workspace.
          Hide
          slide_o_mix Alex Earl added a comment -

          Added option to save output into the workspace.

          Show
          slide_o_mix Alex Earl added a comment - Added option to save output into the workspace.
          Hide
          oxygen Owen Liu added a comment -

          Hi,

          how can I use this option in a pipeline, what is the parameter name?

           

          Show
          oxygen Owen Liu added a comment - Hi, how can I use this option in a pipeline, what is the parameter name?  
          Hide
          slide_o_mix Alex Earl added a comment -

          Use the snippet generator.

          Show
          slide_o_mix Alex Earl added a comment - Use the snippet generator.
          Hide
          oxygen Owen Liu added a comment -

          I asked this question in the mailing list of Jenkins user group, I got the answer that the saveOutput option is not supported in pipeline syntax, Victor Martinez opened a issue for it, https://issues.jenkins-ci.org/browse/JENKINS-56794

          Show
          oxygen Owen Liu added a comment - I asked this question in the mailing list of Jenkins user group, I got the answer that the saveOutput option is not supported in pipeline syntax, Victor Martinez opened a issue for it,  https://issues.jenkins-ci.org/browse/JENKINS-56794

            People

            • Assignee:
              slide_o_mix Alex Earl
              Reporter:
              larrycai Larry Cai
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: