0

The console output (or build log) as visible on the site, contains html markup (mainly from the ansi color plugin), which I intend to export as part of the email notification via email-ext (either as content or attachment). Are there any existing plugins/methods I can use to do this efficiently? I can't think of a better way short of wget + dom parsing, which I find relatively tedious.

prusswan
  • 6,853
  • 4
  • 40
  • 61

1 Answers1

0

It seems that the rendered page cannot be fully obtained in the middle of the build through wget (partial javascript code is returned). This probably makes sense, but for my purpose I finally decided to filter the ansi escape sequences from the email (which is possible through build.getLog() + String.replaceAll) so it will be just as readable as the online version.

prusswan
  • 6,853
  • 4
  • 40
  • 61
  • 1
    This answer would be a lot more helpful if you showed the actual solution you used. i.e. what was the replaceAll sequence you used to strip the escape sequences? – catchdave Jan 22 '13 at 16:53
  • @catchdave the answer for this question is basically, no it cannot be done etc. There are a number of ways to customize the email however. You can probably find the regex somewhere (I no longer have it) – prusswan Jan 22 '13 at 18:33