SubversionSCM.getLocations
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using hudson.scm.SubversionSCM.getLocations (Showing top 20 results out of 315)

origin: jenkinsci/subversion-plugin

/**
 * @since 1.252
 * @deprecated Use {@link #getLocations(EnvVars, Run)} for vars
 *             expansion to be performed on all env vars rather than just
 *             build parameters.
 */
public ModuleLocation[] getLocations(AbstractBuild<?,?> build) {
  return getLocations(null, build);
}
origin: org.hudsonci.plugins/subversion

@Override
public FilePath getModuleRoot(FilePath workspace) {
  if (getLocations().length > 0) {
    return workspace.child(getLocations()[0].getLocalDir());
  }
  return workspace;
}
origin: org.jvnet.hudson.plugins/subversion

@Override
public FilePath getModuleRoot(FilePath workspace) {
  if (getLocations().length > 0) {
    return workspace.child(getLocations()[0].getLocalDir());
  }
  return workspace;
}
origin: org.hudsonci.plugins/subversion

/**
 * list of all configured svn locations
 *
 * @since 1.91
 */
@Exported
public ModuleLocation[] getLocations() {
  return getLocations(null);
}
origin: org.jvnet.hudson.plugins/subversion

/**
 * list of all configured svn locations
 *
 * @since 1.91
 */
@Exported
public ModuleLocation[] getLocations() {
  return getLocations(null);
}
origin: jenkinsci/subversion-plugin

/**
 * @deprecated
 */
@Override
@Deprecated
public FilePath getModuleRoot(FilePath workspace) {
  if (getLocations().length > 0)
    return workspace.child(getLocations()[0].getLocalDir());
  return workspace;
}
origin: jenkinsci/subversion-plugin

@Override public String getKey() {
  StringBuilder b = new StringBuilder("svn");
  for (ModuleLocation loc : getLocations()) {
    b.append(' ').append(loc.getURL());
  }
  return b.toString();
}
origin: jenkinsci/subversion-plugin

/**
 * list of all configured svn locations
 *
 * @since 1.91
 */
@Exported
public ModuleLocation[] getLocations() {
  return getLocations(null, null);
}
origin: org.jvnet.hudson.plugins/subversion

@Override
public boolean isBrowserReusable(SubversionSCM x, SubversionSCM y) {
  ModuleLocation[] xl = x.getLocations(), yl = y.getLocations();
  if (xl.length != yl.length) {
    return false;
  }
  for (int i = 0; i < xl.length; i++) {
    if (!xl[i].getURL().equals(yl[i].getURL())) {
      return false;
    }
  }
  return true;
}
origin: jenkinsci/subversion-plugin

@Override
public boolean isBrowserReusable(SubversionSCM x, SubversionSCM y) {
  ModuleLocation[] xl = x.getLocations(), yl = y.getLocations();
  if (xl.length != yl.length) return false;
  for (int i = 0; i < xl.length; i++)
    if (!xl[i].getURL().equals(yl[i].getURL())) return false;
  return true;
}
origin: org.hudsonci.plugins/subversion

@Override
public boolean isBrowserReusable(SubversionSCM x, SubversionSCM y) {
  ModuleLocation[] xl = x.getLocations(), yl = y.getLocations();
  if (xl.length != yl.length) {
    return false;
  }
  for (int i = 0; i < xl.length; i++) {
    if (!xl[i].getURL().equals(yl[i].getURL())) {
      return false;
    }
  }
  return true;
}
origin: jenkinsci/subversion-plugin

public BuildRevisionMapTask(Run<?, ?> build, SubversionSCM parent, TaskListener listener, List<External> externals, EnvVars env) {
  this.listener = listener;
  this.externals = externals;
  this.locations = parent.getLocations(env, build);
  this.defaultAuthProvider = parent.createAuthenticationProvider(build.getParent(), null, listener);
  this.authProviders = new LinkedHashMap<String, ISVNAuthenticationProvider>();
  for (ModuleLocation loc: locations) {
    authProviders.put(loc.remote, parent.createAuthenticationProvider(build.getParent(), loc, listener));
  }
}
origin: jenkinsci/subversion-plugin

@Deprecated
@Override
public FilePath[] getModuleRoots(FilePath workspace) {
  final ModuleLocation[] moduleLocations = getLocations();
  if (moduleLocations.length > 0) {
    FilePath[] moduleRoots = new FilePath[moduleLocations.length];
    for (int i = 0; i < moduleLocations.length; i++) {
      moduleRoots[i] = workspace.child(moduleLocations[i].getLocalDir());
    }
    return moduleRoots;
  }
  return new FilePath[] { getModuleRoot(workspace) };
}
origin: org.jvnet.hudson.plugins/subversion

public BuildRevisionMapTask(AbstractBuild<?, ?> build, SubversionSCM parent, TaskListener listener,
              List<External> externals) {
  this.authProvider = parent.getDescriptor().createAuthenticationProvider(build.getParent());
  this.listener = listener;
  this.externals = externals;
  this.locations = parent.getLocations(build);
}
origin: org.hudsonci.plugins/subversion

public BuildRevisionMapTask(AbstractBuild<?, ?> build, SubversionSCM parent, TaskListener listener,
              List<External> externals) {
  this.authProvider = parent.getDescriptor().createAuthenticationProvider(build.getParent());
  this.listener = listener;
  this.externals = externals;
  this.locations = parent.getLocations(build);
}
origin: org.jvnet.hudson.plugins/subversion

@Override
public FilePath[] getModuleRoots(FilePath workspace) {
  final ModuleLocation[] moduleLocations = getLocations();
  if (moduleLocations.length > 0) {
    FilePath[] moduleRoots = new FilePath[moduleLocations.length];
    for (int i = 0; i < moduleLocations.length; i++) {
      moduleRoots[i] = workspace.child(moduleLocations[i].getLocalDir());
    }
    return moduleRoots;
  }
  return new FilePath[]{getModuleRoot(workspace)};
}
origin: org.hudsonci.plugins/subversion

@Override
public FilePath[] getModuleRoots(FilePath workspace) {
  final ModuleLocation[] moduleLocations = getLocations();
  if (moduleLocations.length > 0) {
    FilePath[] moduleRoots = new FilePath[moduleLocations.length];
    for (int i = 0; i < moduleLocations.length; i++) {
      moduleRoots[i] = workspace.child(moduleLocations[i].getLocalDir());
    }
    return moduleRoots;
  }
  return new FilePath[]{getModuleRoot(workspace)};
}
origin: org.jvnet.hudson.plugins/subversion

public CheckOutTask(AbstractBuild<?, ?> build, SubversionSCM scm, Date queueTime, Date buildTime,
          TaskListener listener) {
  this.authProvider = scm.getDescriptor().createAuthenticationProvider(build.getParent());
  this.queueTime = queueTime;
  this.buildTime = buildTime;
  this.listener = listener;
  this.locations = scm.getLocations(build);
  this.revisionParameterAction = build.getAction(RevisionParameterAction.class);
  this.task = scm.getWorkspaceUpdater().createTask();
  this.revisionPolicy = (scm.getDescriptor() != null ? scm.getDescriptor().getRevisionPolicy() : null);
}
origin: org.hudsonci.plugins/subversion

public CheckOutTask(AbstractBuild<?, ?> build, SubversionSCM scm, Date queueTime, Date buildTime,
          TaskListener listener) {
  this.authProvider = scm.getDescriptor().createAuthenticationProvider(build.getParent());
  this.queueTime = queueTime;
  this.buildTime = buildTime;
  this.listener = listener;
  this.locations = scm.getLocations(build);
  this.revisionParameterAction = build.getAction(RevisionParameterAction.class);
  this.task = scm.getWorkspaceUpdater().createTask();
  this.revisionPolicy = (scm.getDescriptor() != null ? scm.getDescriptor().getRevisionPolicy() : null);
}
origin: jenkinsci/subversion-plugin

@Issue("JENKINS-10943")
@Test
public void getLocalDirWithAtRevision() throws Exception {
  // remote is not configured.
  SubversionSCM scm = new SubversionSCM("http://localhost/project@100", null);
  ModuleLocation[] locs = scm.getLocations();
  assertEquals(1, locs.length);
  assertEquals("project", locs[0].getLocalDir());
}
hudson.scmSubversionSCMgetLocations

Javadoc

list of all configured svn locations

Popular methods of SubversionSCM

  • getDescriptor
  • calcRevisionsFromBuild
  • createClientManager
    Creates SVNClientManager. This method must be executed on the slave where svn operations are perform
  • createSvnClientManager
    Creates SVNClientManager. This method must be executed on the slave where svn operations are perfo
  • getExcludedRevprop
  • getWorkspaceUpdater
  • calcChangeLog
    Called after checkout/update has finished to compute the changelog.
  • checkout
  • compareSVNAuthentications
  • createAuthenticationProvider
    Creates ISVNAuthenticationProvider. This method must be invoked on the master, but the returned obje
  • createEmptyChangeLog
  • describeBean
    In preparation for a comparison, char[] needs to be converted that supports value equality.
  • createEmptyChangeLog,
  • describeBean,
  • getExcludedCommitMessagesNormalized,
  • getExcludedRegionsNormalized,
  • getIncludedRegionsNormalized,
  • getModuleRoot,
  • getRevisionFile,
  • parseRevisionFile,
  • repositoryLocationsNoLongerExist

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • notifyDataSetChanged (ArrayAdapter)
  • requestLocationUpdates (LocationManager)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Option (scala)

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)