0

I want to expose the Jenkins build log as part of the Post Build Actions. Ideally, I just want to use some of the log, and I'm thinking that I can do this by using a substring of what is produced from the build log.

${BUILD_LOG, maxLines, escapeHtml}

Reference: How can I take last 20 lines from the $BUILD_LOG variable?

The reason that I want to use substring over maxlines is because I just want to output some of the log, in this case from ERROR:, and the length is variable.

Any help on this would be much appreciated!

fuzzi
  • 1,967
  • 9
  • 46
  • 90

1 Answers1

0

Doable. This post covers off the hurdles / issues you will need to consider and deal with.

Andrew Gray
  • 3,593
  • 3
  • 35
  • 62