Class GitHubPRRepository
java.lang.Object
com.github.kostyasha.github.integration.generic.GitHubRepository<GitHubPRRepository>
org.jenkinsci.plugins.github.pullrequest.GitHubPRRepository
- All Implemented Interfaces:
Action
,ModelObject
,Saveable
GitHub Repository local state = last trigger run() state.
Store only necessary variables.
- Author:
- Kanstantsin Shautsou
-
Field Summary
Modifier 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
ConstructorDescriptionGitHubPRRepository
(String repoFullName, URL githubUrl) GitHubPRRepository
(org.kohsuke.github.GHRepository ghRepository) 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.Run trigger from web.Searches for all builds performed in the runs of current job.getPulls()
void
setConfigFile
(XmlFile configFile) void
Methods inherited from class com.github.kostyasha.github.integration.generic.GitHubRepository
actualise, getConfigFile, getFullName, getGithubUrl, getGitUrl, getJob, getSshUrl, save, saveQuietly, withFullName, withGithubUrl, withGitUrl, withSshUrl
-
Field Details
-
FILE
Store constantly changing information in job directory with .runtime.xml tail
-
-
Constructor Details
-
GitHubPRRepository
Object that represent GitHub repository to work with- Parameters:
ghRepository
- remote repository.- Throws:
IOException
-
GitHubPRRepository
-
-
Method Details
-
getPulls
-
getAllPrBuilds
Searches for all builds performed in the runs of current job.- Returns:
- map with keys - numbers of built PRs and values - lists of related builds.
-
getIconFileName
-
getDisplayName
-
getUrlName
-
actualiseOnChange
public void actualiseOnChange(@NonNull org.kohsuke.github.GHRepository ghRepository, @NonNull TaskListener listener) - Specified by:
actualiseOnChange
in classGitHubRepository<GitHubPRRepository>
-
doClearRepo
- Specified by:
doClearRepo
in classGitHubRepository<GitHubPRRepository>
- Throws:
IOException
-
doRunTrigger
Run trigger from web.- Specified by:
doRunTrigger
in classGitHubRepository<GitHubPRRepository>
-
doRebuildAllFailed
- Specified by:
doRebuildAllFailed
in classGitHubRepository<GitHubPRRepository>
- Throws:
IOException
-
doBuild
Description copied from class:GitHubRepository
Build using local PR state.- Specified by:
doBuild
in classGitHubRepository<GitHubPRRepository>
- Throws:
IOException
-
doRebuild
Description copied from class:GitHubRepository
Rebuild latest built build. Actions copied.- Specified by:
doRebuild
in classGitHubRepository<GitHubPRRepository>
- Throws:
IOException
-
setJob
- Overrides:
setJob
in classGitHubRepository<GitHubPRRepository>
-
setConfigFile
- Overrides:
setConfigFile
in classGitHubRepository<GitHubPRRepository>
-