public class TeamSlugTrait extends jenkins.scm.api.trait.SCMNavigatorTrait
SCMNavigatorContext
with a GitHub team slug which will allow restricting the discovery of repositories
by specific teamsModifier and Type | Class and Description |
---|---|
static class |
TeamSlugTrait.DescriptorImpl
TeamSlug descriptor.
|
Constructor and Description |
---|
TeamSlugTrait(String teamSlug)
Stapler constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
decorateContext(jenkins.scm.api.trait.SCMNavigatorContext<?,?> context) |
String |
getTeamSlug()
Returns the teamSlug.
|
_for, _for, all, applyToBuilder, applyToContext, applyToObserver, decorateBuilder, decorateObserver, getDescriptor, includeCategory, isCategoryEnabled
asSetList, asSetList, find
@DataBoundConstructor public TeamSlugTrait(@NonNull String teamSlug)
teamSlug
- the team slug to use when searching for github repos restricted to a specific team only.@NonNull public String getTeamSlug()
protected void decorateContext(jenkins.scm.api.trait.SCMNavigatorContext<?,?> context)
decorateContext
in class jenkins.scm.api.trait.SCMNavigatorTrait
Copyright © 2016–2020. All rights reserved.