collectOutput
IO action to perform after stage execution (under an environment like a container), in order to load stage output files from the file system for reading and further reporting. This method shall put the contents of output files into a readable internal state representing the outputs.
Parameters
onSuccess
callback action to perform inside the stage if outputs are collected.
onFailure
callback action to perform inside the stage if outputs cannot be collected.