Class GitHubRepository<T extends GitHubRepository>
java.lang.Object
com.github.kostyasha.github.integration.generic.GitHubRepository<T>
- All Implemented Interfaces:
Action
,ModelObject
,Saveable
- Direct Known Subclasses:
GitHubBranchRepository
,GitHubPRRepository
,GitHubTagRepository
public abstract class GitHubRepository<T extends GitHubRepository>
extends Object
implements Action, Saveable
Action as storage of critical (and not) information required for triggering decision.
- Author:
- Kanstantsin Shautsou
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGitHubRepository
(String repoFullName, URL githubUrl) GitHubRepository
(org.kohsuke.github.GHRepository ghRepository) -
Method Summary
Modifier and TypeMethodDescriptionvoid
actualise
(org.kohsuke.github.GHRepository ghRepository, TaskListener listener) Repository may be created without gh connection, but trigger logic expects this fields.protected abstract void
actualiseOnChange
(org.kohsuke.github.GHRepository ghRepository, TaskListener listener) abstract FormValidation
doBuild
(org.kohsuke.stapler.StaplerRequest req) Build using local PR state.abstract FormValidation
abstract FormValidation
doRebuild
(org.kohsuke.stapler.StaplerRequest req) Rebuild latest built build.abstract FormValidation
abstract FormValidation
Job<?,
?> getJob()
void
save()
void
void
setConfigFile
(XmlFile configFile) void
withFullName
(String fullName) withGithubUrl
(URL githubUrl) withGitUrl
(String gitUrl) withSshUrl
(String sshUrl) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.model.Action
getDisplayName, getIconFileName, getUrlName
-
Field Details
-
configFile
-
job
-
changed
protected transient boolean changed
-
-
Constructor Details
-
GitHubRepository
- Throws:
IOException
-
GitHubRepository
-
-
Method Details
-
actualise
public void actualise(@NonNull org.kohsuke.github.GHRepository ghRepository, @NonNull TaskListener listener) throws IOException Repository may be created without gh connection, but trigger logic expects this fields. Should be called before trigger logic starts checks.- Throws:
IOException
-
actualiseOnChange
protected abstract void actualiseOnChange(@NonNull org.kohsuke.github.GHRepository ghRepository, @NonNull TaskListener listener) -
getFullName
-
withFullName
-
getGithubUrl
-
withGithubUrl
-
getGitUrl
-
withGitUrl
-
getSshUrl
-
withSshUrl
-
getJob
-
setJob
-
getConfigFile
-
setConfigFile
-
saveQuietly
public void saveQuietly() -
save
- Specified by:
save
in interfaceSaveable
- Throws:
IOException
-
doClearRepo
- Throws:
IOException
-
doRunTrigger
- Throws:
IOException
-
doRebuildAllFailed
- Throws:
IOException
-
doBuild
Build using local PR state.- Throws:
IOException
-
doRebuild
Rebuild latest built build. Actions copied.- Throws:
IOException
-