I have a [post-build script](http://maven.apache.org/plugins/maven-invoker-plugin/examples/post-build-script.html) written in Groovy in my [maven-invoker-plugin](https://maven.apache.org/plugins/maven-invoker-plugin/index.html) setup. How can I access the console output of an integration test in this script? I want to check that certain text has been printed.