Class TeamSlugTrait

java.lang.Object
hudson.model.AbstractDescribableImpl<T>
jenkins.scm.api.trait.SCMTrait<jenkins.scm.api.trait.SCMNavigatorTrait>
jenkins.scm.api.trait.SCMNavigatorTrait
org.jenkinsci.plugins.github_branch_source.TeamSlugTrait
All Implemented Interfaces:
ExtensionPoint, Describable<jenkins.scm.api.trait.SCMNavigatorTrait>

public class TeamSlugTrait extends jenkins.scm.api.trait.SCMNavigatorTrait
Decorates a SCMNavigatorContext with a GitHub team slug which will allow restricting the discovery of repositories by specific teams
  • Constructor Details

    • TeamSlugTrait

      @DataBoundConstructor public TeamSlugTrait(@NonNull String teamSlug)
      Stapler constructor.
      Parameters:
      teamSlug - the team slug to use when searching for github repos restricted to a specific team only.
  • Method Details

    • getTeamSlug

      @NonNull public String getTeamSlug()
      Returns the teamSlug.
      Returns:
      the teamSlug.
    • decorateContext

      protected void decorateContext(jenkins.scm.api.trait.SCMNavigatorContext<?,?> context)
      Overrides:
      decorateContext in class jenkins.scm.api.trait.SCMNavigatorTrait