hudson.scm.RepositoryBrowser Java Examples
The following examples show how to use
hudson.scm.RepositoryBrowser.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ChangeSetResource.java From blueocean-plugin with MIT License | 5 votes |
@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; }
Example #2
Source File: FakeChangeLogSCM.java From jenkins-test-harness with MIT License | 5 votes |
@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()); }
Example #3
Source File: GerritSCMSource.java From gerrit-code-review-plugin with Apache License 2.0 | 4 votes |
@Restricted(DoNotUse.class) public List<Descriptor<RepositoryBrowser<?>>> getBrowserDescriptors() { return getSCMDescriptor().getBrowserDescriptors(); }
Example #4
Source File: ChangeLogSetBuilder.java From office-365-connector-plugin with Apache License 2.0 | 4 votes |
public ChangeLogSetBuilder(Run run, ChangeLogSet.Entry... entry) { super(run, mock(RepositoryBrowser.class)); entries = Arrays.asList(entry); }