Class GitHubPluginRepoProvider
java.lang.Object
hudson.model.AbstractDescribableImpl<GitHubRepoProvider>
com.github.kostyasha.github.integration.generic.GitHubRepoProvider
com.github.kostyasha.github.integration.generic.repoprovider.GitHubPluginRepoProvider
- All Implemented Interfaces:
ExtensionPoint,Describable<GitHubRepoProvider>
Standard github-plugin global configuration provider.
Defines connection based on globally configured github api servername + token.
- Author:
- Kanstantsin Shautsou
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.github.kostyasha.github.integration.generic.GitHubRepoProvider
GitHubRepoProvider.GitHubRepoProviderDescriptorNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.github.GHRepositorygetGHRepository(GitHubTrigger trigger) alive connection to remote repo.org.kohsuke.github.GitHubgetGitHub(GitHubTrigger trigger) Not used yet because trigger needs only GHRepository to work.booleanbooleanbooleanisManageHooks(GitHubTrigger trigger) Whether it allowed to manage hooks for certain job.voidCalled on trigger start.voidCalled on trigger stop.protected ObjectvoidregisterHookFor(GitHubTrigger trigger) voidsetCacheConnection(boolean cacheConnection) voidsetManageHooks(boolean manageHooks) voidsetRepoPermission(GHPermission repoPermission) Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Field Details
-
cacheConnection
-
-
Constructor Details
-
GitHubPluginRepoProvider
@DataBoundConstructor public GitHubPluginRepoProvider()
-
-
Method Details
-
isCacheConnection
public boolean isCacheConnection() -
setCacheConnection
@DataBoundSetter public void setCacheConnection(boolean cacheConnection) -
isManageHooks
public boolean isManageHooks() -
setManageHooks
@DataBoundSetter public void setManageHooks(boolean manageHooks) -
getRepoPermission
-
setRepoPermission
-
registerHookFor
- Specified by:
registerHookForin classGitHubRepoProvider- Parameters:
trigger- specific trigger type. Find by type what events wants trigger.
-
isManageHooks
Description copied from class:GitHubRepoProviderWhether it allowed to manage hooks for certain job.- Specified by:
isManageHooksin classGitHubRepoProvider
-
onTriggerStart
public void onTriggerStart()Description copied from class:GitHubRepoProviderCalled on trigger start. I.e. reset cache after some changes.- Overrides:
onTriggerStartin classGitHubRepoProvider
-
onTriggerStop
public void onTriggerStop()Description copied from class:GitHubRepoProviderCalled on trigger stop. I.e. reset cache after some changes.- Overrides:
onTriggerStopin classGitHubRepoProvider
-
getGitHub
Description copied from class:GitHubRepoProviderNot used yet because trigger needs only GHRepository to work.- Specified by:
getGitHubin classGitHubRepoProvider
-
getGHRepository
Description copied from class:GitHubRepoProvideralive connection to remote repo.- Specified by:
getGHRepositoryin classGitHubRepoProvider
-
readResolve
-