Add build-flow plugin as dependency
Extract buildURL calculation to a method
If build is from FlowRun type, then iterate through its jobs graph adding all downstream jobs build urls to the message that will be posted to github pull request.
Make build-flow dependency optional, as suggested
Define an interface to calculate build URL, implementing a default behaviour
Implement BuildFlow build url calculation
Use a factory to decide which downstream manager to use
Apply factory to the place where URL is calculated to be sent to github
Prevent that the plugin is not installed, returning default behaviour instead
Forgot author
Add javadocs
Rename classes with better names
Create a flag on plugin configuration to display -or not- build errors directly on the github pull request
Rename method to be more generic
Only append message if the build result is success OR display build errors on downstream builds is enabled
Generate the customized message only for two conditions: the build result is success OR the display build errors on downstream builds is enabled
Rename interface and base class, as they will be managing downstream builds, not only the URLs on them
Support retrieving the downstream builds as an iterator, so it could be used to see tests results
Support retrieving testName&since attributes from downstream tests result
Add stacktrace to the output message