protected SVNCopyClient getSVNCopyClient(){ return getClientManager().getCopyClient(); }
public SVNCopyClient getCopyClient() { return wrapUp(core.getCopyClient()); }
protected SVNCopyClient getSVNCopyClient() { return getClientManager().getCopyClient(); }
protected SVNCopyClient getSVNCopyClient() { return getClientManager().getCopyClient(); }
protected SVNCopyClient getSVNCopyClient() { return getClientManager().getCopyClient(); }
public static SVNCommitInfo copy( SVNClientManager clientManager, File srcPath, SVNURL dstURL, boolean isMove, String commitMessage, String revision ) throws SVNException { SVNRevision svnRevision = null; if ( StringUtils.isEmpty( revision ) ) { svnRevision = SVNRevision.WORKING; } else { svnRevision = SVNRevision.create( Long.parseLong( revision ) ); } /* * SVNRevision.WORKING means working (current) revision. * Returns SVNCommitInfo containing information on the new revision committed * (revision number, etc.) */ SVNCopySource[] svnCopySources = new SVNCopySource[1]; svnCopySources[0] = new SVNCopySource( svnRevision, svnRevision, srcPath ); return clientManager.getCopyClient().doCopy( svnCopySources, dstURL, false, true, true, commitMessage, new SVNProperties() ); }
public static SVNCommitInfo copy( SVNClientManager clientManager, SVNURL srcURL, SVNURL dstURL, boolean isMove, String commitMessage, String revision ) throws SVNException { SVNRevision svnRevision = null; if ( StringUtils.isEmpty( revision ) ) { svnRevision = SVNRevision.HEAD; } else { svnRevision = SVNRevision.create( Long.parseLong( revision ) ); } /* * SVNRevision.HEAD means the latest revision. * Returns SVNCommitInfo containing information on the new revision committed * (revision number, etc.) */ SVNCopySource[] svnCopySources = new SVNCopySource[1]; svnCopySources[0] = new SVNCopySource( svnRevision, svnRevision, srcURL ); return clientManager.getCopyClient().doCopy( svnCopySources, dstURL, false, true, true, commitMessage, new SVNProperties() ); //return clientManager.getCopyClient().doCopy( srcURL, svnRevision, dstURL, isMove, commitMessage, new SVNProperties() ); }
public Void invoke(File ws, VirtualChannel channel) throws IOException, InterruptedException { File workingCopy = new File(ws, location.getLocalDir()).getCanonicalFile(); try { SVNURL svnUrl = SVNURL.parseURIEncoded(tagUrl); SVNCopyClient copyClient; try { copyClient = SubversionSCM.createClientManager(authProvider).getCopyClient(); } catch (NoSuchMethodError e) { //todo remove when backward compatibility not needed //fallback for older versions of org.jenkins-ci.plugins:subversion buildListener.getLogger().println( "[RELEASE] You are using an old subversion jenkins plugin, please consider upgrading."); copyClient = SubversionSCM.createSvnClientManager(authProvider).getCopyClient(); } buildListener.getLogger().println("[RELEASE] Creating subversion tag: " + tagUrl); SVNCopySource source = new SVNCopySource(SVNRevision.WORKING, SVNRevision.WORKING, workingCopy); SVNCommitInfo commitInfo = copyClient.doCopy(new SVNCopySource[]{source}, svnUrl, false, true, true, commitMessage, new SVNProperties()); SVNErrorMessage errorMessage = commitInfo.getErrorMessage(); if (errorMessage != null) { throw new IOException("Failed to create tag: " + errorMessage.getFullMessage()); } return null; } catch (SVNException e) { debuggingLogger.log(Level.FINE, "Failed to create tag", e); throw new IOException("Subversion tag creation failed: " + e.getMessage()); } } }
SVNURL dst = SVNURL.parseURIDecoded(e.getValue()); SVNCopyClient svncc = cm.getCopyClient(); SVNRevision sourceRevision = SVNRevision.create(e.getKey().revision); SVNCopySource csrc = new SVNCopySource(sourceRevision, sourceRevision, src);
SVNURL dst = SVNURL.parseURIDecoded(e.getValue()); SVNCopyClient svncc = cm.getCopyClient(); SVNRevision sourceRevision = SVNRevision.create(e .getKey().revision);
final SVNCopyClient copyClient = svnClientManager.getCopyClient(); final SVNURL location = repo.getLocation(); final SVNURL srcURL = SVNURL.parseURIEncoded(location + "/trunk");
SVNCopyClient client = getSVNEnvironment().getClientManager().getCopyClient(); if (!getSVNEnvironment().isQuiet()) { client.setEventHandler(new SVNNotifyPrinter(getSVNEnvironment()));
SVNCopyClient client = getSVNEnvironment().getClientManager().getCopyClient(); if (!getSVNEnvironment().isQuiet()) { client.setEventHandler(new SVNNotifyPrinter(getSVNEnvironment()));
SVNCopyClient client = getSVNEnvironment().getClientManager().getCopyClient(); if (!sourceIsURL && !dst.isURL()) { if (!getSVNEnvironment().isQuiet()) {
SVNCopyClient client = getSVNEnvironment().getClientManager().getCopyClient(); if (!sourceIsURL && !dst.isURL()) { if (!getSVNEnvironment().isQuiet()) {