hudson.plugins.git.browser.GitRepositoryBrowser Java Examples
The following examples show how to use
hudson.plugins.git.browser.GitRepositoryBrowser.
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: GerritSCMSource.java From gerrit-code-review-plugin with Apache License 2.0 | 5 votes |
@Restricted(DoNotUse.class) @DataBoundSetter public void setBrowser(GitRepositoryBrowser browser) { List<SCMSourceTrait> traits = new ArrayList<>(this.traits); for (Iterator<SCMSourceTrait> iterator = traits.iterator(); iterator.hasNext(); ) { if (iterator.next() instanceof GitBrowserSCMSourceTrait) { iterator.remove(); } } if (browser != null) { traits.add(new GitBrowserSCMSourceTrait(browser)); } setTraits(traits); }
Example #2
Source File: MockGitSCM.java From aws-codecommit-trigger-plugin with Apache License 2.0 | 5 votes |
@DataBoundConstructor public MockGitSCM( List<UserRemoteConfig> userRemoteConfigs, List<BranchSpec> branches, Boolean doGenerateSubmoduleConfigurations, Collection<SubmoduleConfig> submoduleCfg, GitRepositoryBrowser browser, String gitTool, List<GitSCMExtension> extensions ) { super(userRemoteConfigs, branches, doGenerateSubmoduleConfigurations, submoduleCfg, browser, gitTool, extensions); this.url = userRemoteConfigs.get(0).getUrl(); }
Example #3
Source File: GitLabSCMSource.java From gitlab-branch-source-plugin with GNU General Public License v2.0 | 5 votes |
@Override public GitRepositoryBrowser getBrowser() { try { return new GitLab(project.getWebUrl(), gitLabAPI(getSourceSettings()).getVersion()); } catch (GitLabAPIException e) { LOGGER.warning("could not determine gitlab-version:" + e.getMessage()); return super.getBrowser(); } }