private Run < ? , ? > getPreviousRun ( Run < ? , ? > build , TaskListener listener ) { Run < ? , ? > prevBuild = ExtendedEmailPublisher . getPreviousRun ( build , listener ) ; // Skip ABORTED builds if ( prevBuild != null && prevBuild . getResult ( ) == Result . ABORTED ) { return getPreviousRun ( prevBuild , listener ) ; } return prevBuild ; }
Find most recent previous build matching certain criteria .