Class GitHubBranchRepository
java.lang.Object
com.github.kostyasha.github.integration.generic.GitHubRepository<GitHubBranchRepository>
com.github.kostyasha.github.integration.branch.GitHubBranchRepository
- All Implemented Interfaces:
Action
,ModelObject
,Saveable
Store local state of remote branches.
- Author:
- Kanstantsin Shautsou
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Store constantly changing information in job directory with .runtime.xml tailFields inherited from class com.github.kostyasha.github.integration.generic.GitHubRepository
changed, configFile, job
-
Constructor Summary
ConstructorsConstructorDescriptionGitHubBranchRepository
(String repoFullName, URL url) GitHubBranchRepository
(org.kohsuke.github.GHRepository remoteRepository) Object that represent GitHub repository to work with -
Method Summary
Modifier and TypeMethodDescriptionvoid
actualiseOnChange
(org.kohsuke.github.GHRepository ghRepository, TaskListener listener) doBuild
(org.kohsuke.stapler.StaplerRequest req) Build using local PR state.doRebuild
(org.kohsuke.stapler.StaplerRequest req) Rebuild latest built build.Searches for all builds performed in the runs of current job.Methods inherited from class com.github.kostyasha.github.integration.generic.GitHubRepository
actualise, getConfigFile, getFullName, getGithubUrl, getGitUrl, getJob, getSshUrl, save, saveQuietly, setConfigFile, setJob, withFullName, withGithubUrl, withGitUrl, withSshUrl
-
Field Details
-
FILE
Store constantly changing information in job directory with .runtime.xml tail
-
-
Constructor Details
-
GitHubBranchRepository
Object that represent GitHub repository to work with- Parameters:
remoteRepository
- remote repository full name.- Throws:
IOException
-
GitHubBranchRepository
-
-
Method Details
-
getBranches
-
actualiseOnChange
public void actualiseOnChange(@NonNull org.kohsuke.github.GHRepository ghRepository, @NonNull TaskListener listener) - Specified by:
actualiseOnChange
in classGitHubRepository<GitHubBranchRepository>
-
getIconFileName
-
getDisplayName
-
getUrlName
-
getAllBranchBuilds
Searches for all builds performed in the runs of current job.- Returns:
- map with key - string branch names; value - lists of related builds.
-
doClearRepo
- Specified by:
doClearRepo
in classGitHubRepository<GitHubBranchRepository>
- Throws:
IOException
-
doRunTrigger
- Specified by:
doRunTrigger
in classGitHubRepository<GitHubBranchRepository>
- Throws:
IOException
-
doRebuildAllFailed
- Specified by:
doRebuildAllFailed
in classGitHubRepository<GitHubBranchRepository>
- Throws:
IOException
-
doBuild
Description copied from class:GitHubRepository
Build using local PR state.- Specified by:
doBuild
in classGitHubRepository<GitHubBranchRepository>
- Throws:
IOException
-
doRebuild
Description copied from class:GitHubRepository
Rebuild latest built build. Actions copied.- Specified by:
doRebuild
in classGitHubRepository<GitHubBranchRepository>
- Throws:
IOException
-