Class AccessSpecifiedRepositories
java.lang.Object
hudson.model.AbstractDescribableImpl<RepositoryAccessStrategy>
org.jenkinsci.plugins.github_branch_source.app_credentials.RepositoryAccessStrategy
org.jenkinsci.plugins.github_branch_source.app_credentials.AccessSpecifiedRepositories
- All Implemented Interfaces:
Describable<RepositoryAccessStrategy>
,Serializable
This mode only allows the
GitHubAppCredentials
to generate an installation token for the
specified owner and list of repositories.
The context of where the credentials are used in Jenkins is irrelevant.
Specifying an empty list of repositories allows the credential to generate an installation token that can access any repository available to the owner.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.jenkinsci.plugins.github_branch_source.app_credentials.RepositoryAccessStrategy
RepositoryAccessStrategy.RepositoryAccessStrategyDescriptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionforContext
(GitHubAppUsageContext context) Get theAccessibleRepositories
to use when generating installation access tokens for the inferred contextual owner and repository.getOwner()
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
AccessSpecifiedRepositories
-
-
Method Details
-
getOwner
-
getRepositories
-
getRepositoriesForJelly
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public String getRepositoriesForJelly() -
forContext
Description copied from class:RepositoryAccessStrategy
Get theAccessibleRepositories
to use when generating installation access tokens for the inferred contextual owner and repository.Called when the credential is used in a context where an owner and repository can be inferred.
- Specified by:
forContext
in classRepositoryAccessStrategy
- Returns:
null
if the accessible repositories are unknown, or if no repositories are accessible in the specified context
-