Class GitHubRepoProvider
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<GitHubRepoProvider>
-
- com.github.kostyasha.github.integration.generic.GitHubRepoProvider
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GitHubRepoProvider>
- Direct Known Subclasses:
GitHubPluginRepoProvider
public abstract class GitHubRepoProvider extends AbstractDescribableImpl<GitHubRepoProvider> implements ExtensionPoint
Extension for providing GH connection for specified repository with job context. You can extract additional information from job to define what connection provide.- Author:
- Kanstantsin Shautsou
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GitHubRepoProvider.GitHubRepoProviderDescriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description GitHubRepoProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract org.kohsuke.github.GHRepository
getGHRepository(GitHubTrigger trigger)
alive connection to remote repo.abstract org.kohsuke.github.GitHub
getGitHub(GitHubTrigger trigger)
Not used yet because trigger needs only GHRepository to work.abstract boolean
isManageHooks(GitHubTrigger trigger)
Whether it allowed to manage hooks for certain job.void
onTriggerStart()
Called on trigger start.void
onTriggerStop()
Called on trigger stop.abstract void
registerHookFor(GitHubTrigger trigger)
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Method Detail
-
registerHookFor
public abstract void registerHookFor(GitHubTrigger trigger)
- Parameters:
trigger
- specific trigger type. Find by type what events wants trigger.
-
isManageHooks
public abstract boolean isManageHooks(GitHubTrigger trigger)
Whether it allowed to manage hooks for certain job.
-
getGitHub
@CheckForNull public abstract org.kohsuke.github.GitHub getGitHub(GitHubTrigger trigger)
Not used yet because trigger needs only GHRepository to work.
-
onTriggerStart
public void onTriggerStart()
Called on trigger start. I.e. reset cache after some changes.
-
onTriggerStop
public void onTriggerStop()
Called on trigger stop. I.e. reset cache after some changes.
-
getGHRepository
@CheckForNull public abstract org.kohsuke.github.GHRepository getGHRepository(GitHubTrigger trigger)
alive connection to remote repo.
-
-