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

save html file in build before sending

    XMLWordPrintable

Details

    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

          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_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.
          slide_o_mix Alex Earl added a comment -

          Added option to save output into the workspace.

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

          Hi,

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

           

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

          Use the snippet generator.

          slide_o_mix Alex Earl added a comment - Use the snippet generator.
          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

          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

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

            Dates

              Created:
              Updated:
              Resolved: