@Deprecated public SVNRepository openRepository(AbstractProject context) throws SVNException { return openRepository(context, true); }
@Deprecated public SVNRepository openRepository(AbstractProject context, boolean keepConnection) throws SVNException { return openRepository(context, context.getScm(), true); }
/** * Repository UUID. Lazy computed and cached. */ public UUID getUUID(Job context, SCM scm) throws SVNException { if(repositoryUUID==null || repositoryRoot==null) { LOGGER.fine("UUID of " + remote + " not cached for " + context); synchronized (this) { // don't keep connections open for further use to prevent having too many open at the same time. SVNRepository r = openRepository(context, scm, false); if (r.getRepositoryUUID(false) == null) r.testConnection(); // make sure values are fetched repositoryUUID = UUID.fromString(r.getRepositoryUUID(false)); repositoryRoot = r.getRepositoryRoot(true); } } return repositoryUUID; }
/** * Repository UUID. Lazy computed and cached. */ public UUID getUUID(AbstractProject context) throws SVNException { if (repositoryUUID == null || repositoryRoot == null) { synchronized (this) { SVNRepository r = openRepository(context); r.testConnection(); // make sure values are fetched repositoryUUID = UUID.fromString(r.getRepositoryUUID(false)); repositoryRoot = r.getRepositoryRoot(false); } } return repositoryUUID; }
/** * Repository UUID. Lazy computed and cached. */ public UUID getUUID(AbstractProject context) throws SVNException { if (repositoryUUID == null || repositoryRoot == null) { synchronized (this) { SVNRepository r = openRepository(context); r.testConnection(); // make sure values are fetched repositoryUUID = UUID.fromString(r.getRepositoryUUID(false)); repositoryRoot = r.getRepositoryRoot(false); } } return repositoryUUID; }