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
FieldsModifier and TypeFieldDescriptionstatic final StringStore 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
ConstructorsConstructorDescriptionGitHubPRRepository(String repoFullName, URL githubUrl) GitHubPRRepository(org.kohsuke.github.GHRepository ghRepository) Object that represent GitHub repository to work with -
Method Summary
Modifier and TypeMethodDescriptionvoidactualiseOnChange(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()voidsetConfigFile(XmlFile configFile) voidMethods 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:
actualiseOnChangein classGitHubRepository<GitHubPRRepository>
-
doClearRepo
- Specified by:
doClearRepoin classGitHubRepository<GitHubPRRepository>- Throws:
IOException
-
doRunTrigger
Run trigger from web.- Specified by:
doRunTriggerin classGitHubRepository<GitHubPRRepository>
-
doRebuildAllFailed
- Specified by:
doRebuildAllFailedin classGitHubRepository<GitHubPRRepository>- Throws:
IOException
-
doBuild
Description copied from class:GitHubRepositoryBuild using local PR state.- Specified by:
doBuildin classGitHubRepository<GitHubPRRepository>- Throws:
IOException
-
doRebuild
Description copied from class:GitHubRepositoryRebuild latest built build. Actions copied.- Specified by:
doRebuildin classGitHubRepository<GitHubPRRepository>- Throws:
IOException
-
setJob
- Overrides:
setJobin classGitHubRepository<GitHubPRRepository>
-
setConfigFile
- Overrides:
setConfigFilein classGitHubRepository<GitHubPRRepository>
-