private static RepositoryBrowser<?> browserFromBuild(AbstractBuild<?,?> build) { if (build == null) { // not generally allowed, but sometimes done in unit tests return null; } return build.getParent().getScm().getEffectiveBrowser(); }
@Deprecated public ChangeLogSet<? extends Entry> parse(AbstractBuild build, File changelogFile) throws IOException, SAXException { return parse((Run) build, build.getProject().getScm().getEffectiveBrowser(), changelogFile); } }
private RepositoryBrowser<?> getRepositoryBrowser(Run<?, ?> run) { SCM scm = getScm(); if (scm != null) { return scm.getEffectiveBrowser(); } return null; }
@Deprecated /* TODO: Used by TeamSystemWebAccessBrowserTest, should update to use non-deprecated method instead */ public ChangeLogSet(final AbstractBuild build, final ChangeSet[] changesetArray) { this(build, build.getProject().getScm().getEffectiveBrowser(), changesetArray); }
@Deprecated /*package*/ SubversionChangeLogSet(AbstractBuild<?,?> build, List<LogEntry> logs) { this(build, build.getProject().getScm().getEffectiveBrowser(), logs, false); }
private static RepositoryBrowser<?> browserFromBuild(AbstractBuild<?,?> build) { if (build == null) { // not generally allowed, but sometimes done in unit tests return null; } return build.getParent().getScm().getEffectiveBrowser(); }
@Deprecated public ChangeLogSet<? extends Entry> parse(AbstractBuild build, File changelogFile) throws IOException, SAXException { return parse((Run) build, build.getProject().getScm().getEffectiveBrowser(), changelogFile); } }
@Override @Exported public synchronized List<ChangeLogSet<? extends ChangeLogSet.Entry>> getChangeSets() { if (changeSets == null) { changeSets = new ArrayList<>(); for (SCMCheckout co : checkouts(null)) { if (co.changelogFile != null && co.changelogFile.isFile()) { try { ChangeLogSet<? extends ChangeLogSet.Entry> changeLogSet = co.scm.createChangeLogParser().parse(this, co.scm.getEffectiveBrowser(), co.changelogFile); if (!changeLogSet.isEmptySet()) { changeSets.add(changeLogSet); } } catch (Exception x) { LOGGER.log(Level.WARNING, "could not parse " + co.changelogFile, x); } } } } return changeSets; }
private void onCheckout(SCM scm, FilePath workspace, TaskListener listener, @CheckForNull File changelogFile, @CheckForNull SCMRevisionState pollingBaseline) throws Exception { if (changelogFile != null && changelogFile.isFile()) { ChangeLogSet<?> cls = scm.createChangeLogParser().parse(this, scm.getEffectiveBrowser(), changelogFile); if (!cls.isEmptySet()) { getChangeSets().add(cls); } for (SCMListener l : SCMListener.all()) { l.onChangeLogParsed(this, scm, listener, cls); } } checkouts(listener).add(new SCMCheckout(scm, FilePathUtils.getNodeName(workspace), workspace.getRemote(), changelogFile, pollingBaseline)); }
repoBrowser = build.getProject().getScm().getEffectiveBrowser();