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

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

      • getTeamSlug

        public String getTeamSlug()
        Returns the teamSlug.
        the teamSlug.
      • decorateContext

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