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

send html mails of console log on failure and success

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • mailer-plugin
    • None

      Currently mails sent from jenkins look pretty ugly.

      They are text/plain, which is ok for most cases.

      BUT especially when you have plugins, which use colors in the output the mails are not human readable, as the important information which is transported twice (once in colors, once in words) is not instantly recognizeable by humans.

      So please allow to send the mail as text/plain + text/html and pass the complete styled html from the console view to the mail.

      This way behat testers and other frameworks users, which heavily rely on colors have instant easy to read feedback via mail.

          [JENKINS-28827] send html mails of console log on failure and success

          Daniel Beck added a comment -

          Is this about 'editable email notifications', i.e. the email-ext plugin?

          Daniel Beck added a comment - Is this about 'editable email notifications', i.e. the email-ext plugin?

          Kay Strobach added a comment -

          no definitly not, it's about sending the default generated console output as text/plain and text/html to keep colors.

          And the issue is related to the standard mail behaviour.

          Kay Strobach added a comment - no definitly not, it's about sending the default generated console output as text/plain and text/html to keep colors. And the issue is related to the standard mail behaviour.

          Alex Earl added a comment -

          If you want customizable emails, you need to use email-ext.

          Alex Earl added a comment - If you want customizable emails, you need to use email-ext.

          Kay Strobach added a comment -

          slide_o_mix i think you misunderstood.

          I do not want to customize Jenkins mails.

          What i expect:

          • same output in mail as in console view

          What i get:

          • colored console view with shell color plugin
          • non colored mails

          Possible solution:

          • put the html from the console view into the mail as second mime part (text/html)

          Side Effects:

          • failing builds will always deliver a defined set of data (console view) in the same visual way to the mail recipient.

          Kay Strobach added a comment - slide_o_mix i think you misunderstood. I do not want to customize Jenkins mails. What i expect: same output in mail as in console view What i get: colored console view with shell color plugin non colored mails Possible solution: put the html from the console view into the mail as second mime part (text/html) Side Effects: failing builds will always deliver a defined set of data (console view) in the same visual way to the mail recipient.

          Alex Earl added a comment -

          The mailer plugin is a basic plugin, it doesn't support html email output. That is why email-ext was created.

          Alex Earl added a comment - The mailer plugin is a basic plugin, it doesn't support html email output. That is why email-ext was created.

            Unassigned Unassigned
            kaystrobach Kay Strobach
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: