Class 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 Detail

      • 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 Detail

      • 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