My declarative script job is failing. I understand the reason for the failure but I'm getting an unhelpful message in the log:
[31mERROR: Errors occurred during the build. [0m How can I capture the real error message without these escape sequences? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAJK_ieixJMUBwaHaPgn91aAZzjd%3DXZwEk8j33tx8eyZRU6EDJQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
