As far as I know, the feature "Aggregate downstream test results" does not work as expected (and it is very hard to find useful documentation). I'd like to achieve very similar functionality:
Job Build triggers jobs T1, T2 in parallel (where T1 does FindBugs, T2 does PMD).
Scenario 1: As soon as T1 and T2 are finished (which I can achieve using the "Join" plugin) I want to gather the artifacts (T1/findbugs.xml and T2/pmd.xml). Then these are analyzed and nice statistics are generated.
Scenario 2 (I like this more): Like scenario 1, but the analysis is done as part of T1 and T2 (in parallel!). As soon as T1 and T2 are finished, the analysis results are combined into nice statistics.
My questions: For scenario 1 I do not know how to reference the downstream projects T1 and T2. I could use the last successful build, but that seems weird when considering many parallel jobs.
For scenario 2 I have no idea how to import the data that is needed for the FindBugs/PMD/Checkstyle/SLOCcount/... plugins so that the corresponding graphs (also?) appear outside of T1/*T2*.
Thanks, Carsten
Here is an outline for a somewhat simpler scenario, but I think you can easily generalize it to your case of multiple downstream jobs. The trick is to use "marking" parameters in downstream jobs.
Let P be the parent job and D be a downstream job.
If using Python (that's what I do) - utilize Python JenkinsAPI wrapper. If using Groovy - utilize Groovy Plugin and run your script as system script. You then can access Jenkins via its Java API.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With