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-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
decorateContext
(jenkins.scm.api.trait.SCMNavigatorContext<?, ?> context) Returns the teamSlug.Methods inherited from class jenkins.scm.api.trait.SCMNavigatorTrait
_for, _for, all, applyToBuilder, applyToContext, applyToObserver, decorateBuilder, decorateObserver, getDescriptor, includeCategory, isCategoryEnabled
Methods inherited from class jenkins.scm.api.trait.SCMTrait
asSetList, asSetList, find
-
Constructor Details
-
TeamSlugTrait
Stapler constructor.- Parameters:
teamSlug
- the team slug to use when searching for github repos restricted to a specific team only.
-
-
Method Details
-
getTeamSlug
Returns the teamSlug.- Returns:
- the teamSlug.
-