in src/main/java/org/jenkinsci/plugins/awsdevicefarm/AWSDeviceFarmTestResult.java [272:290]
public TestResult findCorrespondingResult(String id) {
if (id == null || getId().equalsIgnoreCase(id)) {
return this;
}
ArrayList<AWSDeviceFarmTestResultAction> prevActions = AWSDeviceFarmUtils.previousAWSDeviceFarmBuilds(build.getProject());
if (prevActions == null || prevActions.isEmpty()) {
return null;
}
for (AWSDeviceFarmTestResultAction action : prevActions) {
AWSDeviceFarmTestResult prevResult = action.getResult();
if (prevResult == null) {
continue;
}
if (prevResult.getId().equalsIgnoreCase(id)) {
return prevResult;
}
}
return null;
}