For retrieving history of a build, you should have the BuildResultsSummaryManager injected into your plugin through setter injection. Once that is done there's a series of search methods that you can get a handle on. The most flexible one being findBuildResultsSummaries, where you can have arbitrary search criteria.
Rate this page: