- Run job in agent.
- Job fails with errors. We use logger.error(...) to write them. The error stream is written to the buffer (Without flush).
- Master get the job results and throws exception in order to fail the build.
- Results: Error logs not printed.
Solution suggested: Flush error streams after write.