if (buildInfo == null) {
return null;
}
String fingerprintFileName = fingerprint.getFileName();
ArtifactInfo found = buildInfo.findArtifactByFileName(fingerprintFileName);
if (found == null) {
log.warn("Could not find artifact: " + fingerprint + " in " + buildInfo);
return null;
}
URI url = found.getArtifactUrl();
return new JenkinsCasObject(this, hash, url);
} catch (JenkinsException e) {
throw new OpsException("Error communicating with Jenkins", e);
}
}