> 
>> Compute the warnings in a build and map these warnings to corresponding SCM 
>> changes
> 
> `getScm()` was not what you wanted to begin with. You want
> 
> Run<?, ?> run = …;
> @SuppressWarnings("unchecked") List<ChangeLogSet<? extends
> ChangeLogSet.Entry>> changeSets =
>  run.getClass().getMethod("getChangeSets").invoke(run);
> 
> which will work equally well on `AbstractBuild` or `WorkflowRun`. A
> core interface to abstract the two is pending.
> 


I see, this approach is much better, then it should work for each SCM out of 
the box! Thanks for the hint...

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/6E482001-4523-42C2-B883-4FDCBFDDD5A0%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to