Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions core/src/main/java/hudson/model/Job.java
Original file line number Diff line number Diff line change
Expand Up @@ -1053,6 +1053,9 @@
*/
public List<RunT> getLastBuildsOverThreshold(int numberOfBuilds, Result threshold) {
RunT r = getLastBuild();
if (r == null) {
return Collections.emptyList();

Check warning on line 1057 in core/src/main/java/hudson/model/Job.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered lines

Lines 1056-1057 are not covered by tests
}
return r.getBuildsOverThreshold(numberOfBuilds, threshold);
}

Expand Down
Loading