/** * @param build * set to non-null if {@link Fingerprint} to be created (if so) * will have this build as the owner. Otherwise null, to indicate * an owner-less build. * @throws IOException Loading error */ public @Nonnull Fingerprint getOrCreate(@CheckForNull AbstractBuild build, @Nonnull String fileName, @Nonnull byte[] md5sum) throws IOException { return getOrCreate(build,fileName, Util.toHexString(md5sum)); }
/** * Gets a {@link Fingerprint} object if it exists. * Otherwise null. */ public Fingerprint _getFingerprint( String md5sum ) throws IOException { return fingerprintMap.get(md5sum); }
protected @CheckForNull Fingerprint load(@Nonnull String key) throws IOException { return Fingerprint.load(toByteArray(key)); }
Fingerprint addRecord(Run build) throws IOException { FingerprintMap map = Jenkins.getInstance().getFingerprintMap(); return map.getOrCreate(produced?build:null, fileName, md5sum); }
@StaplerDispatchable public Object getFingerprint( String md5sum ) throws IOException { Fingerprint r = fingerprintMap.get(md5sum); if(r==null) return new NoFingerprintMatch(md5sum); else return r; }
protected @Nonnull Fingerprint create(@Nonnull String md5sum, @Nonnull FingerprintParams createParams) throws IOException { return new Fingerprint(createParams.build, createParams.fileName, toByteArray(md5sum)); }
/** * @param build set to non-null if {@link Fingerprint} to be created (if so) * will have this build as the owner. Otherwise null, to indicate an * owner-less build. */ public Fingerprint getOrCreate(AbstractBuild build, String fileName, byte[] md5sum) throws IOException { return getOrCreate(build, fileName, Util.toHexString(md5sum)); }
/** * Gets a {@link Fingerprint} object if it exists. * Otherwise null. */ public Fingerprint _getFingerprint( String md5sum ) throws IOException { return fingerprintMap.get(md5sum); }
protected Fingerprint load(String key) throws IOException { return Fingerprint.load(toByteArray(key)); }
/** * @param build * set to non-null if {@link Fingerprint} to be created (if so) * will have this build as the owner. Otherwise null, to indicate * an owner-less build. */ public Fingerprint getOrCreate(AbstractBuild build, String fileName, byte[] md5sum) throws IOException { return getOrCreate(build,fileName, Util.toHexString(md5sum)); }
/** * Gets a {@link Fingerprint} object if it exists. * Otherwise null. */ public Fingerprint _getFingerprint(String md5sum) throws IOException { return fingerprintMap.get(md5sum); }
protected Fingerprint load(String key) throws IOException { return Fingerprint.load(toByteArray(key)); }
/** * @param build * set to non-null if {@link Fingerprint} to be created (if so) * will have this build as the owner. Otherwise null, to indicate * an owner-less build. * @throws IOException Loading error */ public @Nonnull Fingerprint getOrCreate(@CheckForNull AbstractBuild build, @Nonnull String fileName, @Nonnull byte[] md5sum) throws IOException { return getOrCreate(build,fileName, Util.toHexString(md5sum)); }
/** * Gets a {@link Fingerprint} object if it exists. * Otherwise null. */ public Fingerprint _getFingerprint(String md5sum) throws IOException { return fingerprintMap.get(md5sum); }
protected Fingerprint create(String md5sum, FingerprintParams createParams) throws IOException { return new Fingerprint(createParams.build, createParams.fileName, toByteArray(md5sum)); }
/** * @param build * set to non-null if {@link Fingerprint} to be created (if so) * will have this build as the owner. Otherwise null, to indicate * an owner-less build. */ public Fingerprint getOrCreate(AbstractBuild build, String fileName, byte[] md5sum) throws IOException { return getOrCreate(build,fileName, Util.toHexString(md5sum)); }
/** * Gets a {@link Fingerprint} object if it exists. Otherwise null. */ public Fingerprint _getFingerprint(String md5sum) throws IOException { return fingerprintMap.get(md5sum); }
protected Fingerprint create(String md5sum, FingerprintParams createParams) throws IOException { return new Fingerprint(createParams.build, createParams.fileName, toByteArray(md5sum)); }
/** * @param build * set to non-null if {@link Fingerprint} to be created (if so) * will have this build as the owner. Otherwise null, to indicate * an owner-less build. */ public Fingerprint getOrCreate(AbstractBuild build, String fileName, byte[] md5sum) throws IOException { return getOrCreate(build,fileName, Util.toHexString(md5sum)); }
/** * Gets a {@link Fingerprint} object if it exists. * Otherwise null. */ public Fingerprint _getFingerprint(String md5sum) throws IOException { return fingerprintMap.get(md5sum); }