Java源码示例:hudson.scm.RepositoryBrowser
示例1
@Override
public String getUrl() {
RepositoryBrowser browser = changeSet.getParent().getBrowser();
if(browser != null) {
try {
URL url = browser.getChangeSetLink(changeSet);
return url == null ? null : url.toExternalForm();
} catch (IOException e) {
return null;
}
}
return null;
}
示例2
@SuppressWarnings("rawtypes")
@Override
public FakeChangeLogSet parse(Run build, RepositoryBrowser<?> browser, File changelogFile) throws IOException, SAXException {
for (ChangelogAction action : build.getActions(ChangelogAction.class)) {
if (changelogFile.getName().equals(action.changeLogFile)) {
return new FakeChangeLogSet(build, action.entries);
}
}
return new FakeChangeLogSet(build, Collections.emptyList());
}
示例3
@Restricted(DoNotUse.class)
public List<Descriptor<RepositoryBrowser<?>>> getBrowserDescriptors() {
return getSCMDescriptor().getBrowserDescriptors();
}
示例4
public ChangeLogSetBuilder(Run run, ChangeLogSet.Entry... entry) {
super(run, mock(RepositoryBrowser.class));
entries = Arrays.asList(entry);
}