Class GitHubSCMNavigatorContext
java.lang.Object
jenkins.scm.api.trait.SCMNavigatorContext<GitHubSCMNavigatorContext,GitHubSCMNavigatorRequest>
org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigatorContext
public class GitHubSCMNavigatorContext
extends jenkins.scm.api.trait.SCMNavigatorContext<GitHubSCMNavigatorContext,GitHubSCMNavigatorRequest>
The
SCMNavigatorContext
for GitHub.- Since:
- 2.2.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the name of the team who's repositories will be navigated.Gets the topics which the repositories must have.boolean
boolean
boolean
boolean
newRequest
(jenkins.scm.api.SCMNavigator navigator, jenkins.scm.api.SCMSourceObserver observer) void
setExcludeArchivedRepositories
(boolean excludeArchivedRepositories) void
setExcludeForkedRepositories
(boolean excludeForkedRepositories) void
setExcludePrivateRepositories
(boolean excludePrivateRepositories) void
setExcludePublicRepositories
(boolean excludePublicRepositories) void
Sets the topics which the repositories must have.Methods inherited from class jenkins.scm.api.trait.SCMNavigatorContext
decorators, filters, prefilters, traits, withDecorator, withDecorators, withDecorators, withFilter, withPrefilter, withTrait, withTrait, withTraits, withTraits
-
Constructor Details
-
GitHubSCMNavigatorContext
public GitHubSCMNavigatorContext()
-
-
Method Details
-
getTeamSlug
Gets the name of the team who's repositories will be navigated.- Returns:
- teamSlug
-
setTopics
Sets the topics which the repositories must have. -
getTopics
Gets the topics which the repositories must have.- Returns:
- topics
-
isExcludeArchivedRepositories
public boolean isExcludeArchivedRepositories()- Returns:
- True if archived repositories should be ignored, false if they should be included.
-
isExcludePublicRepositories
public boolean isExcludePublicRepositories()- Returns:
- True if public repositories should be ignored, false if they should be included.
-
isExcludePrivateRepositories
public boolean isExcludePrivateRepositories()- Returns:
- True if private repositories should be ignored, false if they should be included.
-
isExcludeForkedRepositories
public boolean isExcludeForkedRepositories()- Returns:
- True if forked repositories should be ignored, false if they should be included.
-
setExcludeArchivedRepositories
public void setExcludeArchivedRepositories(boolean excludeArchivedRepositories) - Parameters:
excludeArchivedRepositories
- Set true to exclude archived repositories
-
setExcludePublicRepositories
public void setExcludePublicRepositories(boolean excludePublicRepositories) - Parameters:
excludePublicRepositories
- Set true to exclude public repositories
-
setExcludePrivateRepositories
public void setExcludePrivateRepositories(boolean excludePrivateRepositories) - Parameters:
excludePrivateRepositories
- Set true to exclude private repositories
-
setExcludeForkedRepositories
public void setExcludeForkedRepositories(boolean excludeForkedRepositories) - Parameters:
excludeForkedRepositories
- Set true to exclude archived repositories