public @Nonnull SVNURL getRepositoryRoot(Job context, SCM scm) throws SVNException { getUUID(context, scm); return repositoryRoot; }
private SubversionRepoUUIDAndRootPath remoteUUIDAndRootPathFromCacheOrFromSVN(Job job, SCM scm, ModuleLocation moduleLocation, String urlFromConfiguration) throws SVNException { SubversionRepoUUIDAndRootPath uuidAndRootPath = null; for (Map.Entry<String, UUID> e : remoteUUIDCache.entrySet()) { String remoteRepoRootURL = e.getKey(); String remoteRepoRootURLWithSlash = remoteRepoRootURL + "/"; if (urlFromConfiguration.startsWith(remoteRepoRootURLWithSlash) || urlFromConfiguration.equals(remoteRepoRootURL)) { UUID uuid = e.getValue(); String rootPath = SVNURL.parseURIDecoded(e.getKey()).getPath(); uuidAndRootPath = new SubversionRepoUUIDAndRootPath(uuid, rootPath); LOGGER.finer("Using cached uuid for module location " + urlFromConfiguration + " of job "+ job); break; } } if (uuidAndRootPath == null) { if (LOGGER.isLoggable(FINER)) { LOGGER.finer("Could not find " + urlFromConfiguration + " in " + remoteUUIDCache.keySet()); } UUID remoteUUID = moduleLocation.getUUID(job, scm); SVNURL repositoryRoot = moduleLocation.getRepositoryRoot(job, scm); remoteUUIDCache.put(repositoryRoot.toString(), remoteUUID); uuidAndRootPath = new SubversionRepoUUIDAndRootPath(remoteUUID, repositoryRoot.getPath()); } return uuidAndRootPath; }
@Deprecated public UUID getUUID(AbstractProject context) throws SVNException { return getUUID(context, context.getScm()); }
if (loc.getUUID(p).equals(uuid)) { uuidFound = true; } else {
if (loc.getUUID(p).equals(uuid)) uuidFound = true; else continue;
public SVNURL getRepositoryRoot(AbstractProject context) throws SVNException { getUUID(context); return repositoryRoot; }
public SVNURL getRepositoryRoot(AbstractProject context) throws SVNException { getUUID(context); return repositoryRoot; }