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

          [JENKINS-13302] save html file in build before sending

          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.

          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.

          Alex Earl added a comment -

          Added option to save output into the workspace.

          Alex Earl added a comment - Added option to save output into the workspace.

          Owen Liu added a comment -

          Hi,

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

           

          Owen Liu added a comment - Hi, how can I use this option in a pipeline, what is the parameter name?  

          Alex Earl added a comment -

          Use the snippet generator.

          Alex Earl added a comment - Use the snippet generator.

          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

          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

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

              Created:
              Updated:
              Resolved: