@Deprecated public List<RemoteConfig> getParamExpandedRepos(Run<?, ?> build) throws IOException, InterruptedException { return getParamExpandedRepos(build, new LogTaskListener(LOGGER, Level.INFO)); }
/** * {@inheritDoc} */ @Override public void decorateCheckoutCommand(GitSCM scm, Run<?, ?> build, GitClient git, TaskListener listener, CheckoutCommand cmd) throws IOException, InterruptedException, GitException { listener.getLogger().println("Enabling Git LFS pull"); List<RemoteConfig> repos = scm.getParamExpandedRepos(build, listener); // repos should never be empty, but check anyway if (!repos.isEmpty()) { // Pull LFS files from the first configured repository. // Same technique is used in GitSCM and CLoneOption. // Assumes the passed in scm represents a single repository, or if // multiple repositories are in use, the first repository in the // configuration is treated as authoritative. // Git plugin does not support multiple independent repositories // in a single job definition. cmd.lfsRemote(repos.get(0).getName()); } }
for (RemoteConfig remoteConfig : getParamExpandedRepos(lastBuild, listener)) { String remote = remoteConfig.getName(); List<RefSpec> refSpecs = getRefSpecs(remoteConfig, environment); for (RemoteConfig remoteRepository : getParamExpandedRepos(lastBuild, listener)) { fetchFrom(git, listener, remoteRepository);
final List<RemoteConfig> paramRepos = getParamExpandedRepos(lastBuild); final String singleBranch = getSingleBranch(lastBuild);
final PrintStream log = listener.getLogger(); List<RemoteConfig> repos = getParamExpandedRepos(build, listener); if (repos.isEmpty()) return; // defensive check even though this is an invalid configuration
String gitRepo = getParamExpandedRepos(lastBuild).get(0).getURIs().get(0).toString(); String headRevision = git.getHeadRev(gitRepo, getBranches().get(0).getName()); String lastBuildRevision = buildData.lastBuild.getRevision().getSha1String(); final List<RemoteConfig> paramRepos = getParamExpandedRepos(lastBuild);
final List<RemoteConfig> paramRepos = getParamExpandedRepos(build);
final List<RemoteConfig> paramRepos = getParamExpandedRepos(build);