JENKINS-22166 give a bit more time for the piping to flush the console properly. Add integration tests