Class GitHubTagRepository
- java.lang.Object
-
- com.github.kostyasha.github.integration.generic.GitHubRepository<GitHubTagRepository>
-
- com.github.kostyasha.github.integration.tag.GitHubTagRepository
-
- All Implemented Interfaces:
Action
,ModelObject
,Saveable
public class GitHubTagRepository extends GitHubRepository<GitHubTagRepository>
Store local state of remote tags.- Author:
- Kanstantsin Shautsou
-
-
Field Summary
-
Fields inherited from class com.github.kostyasha.github.integration.generic.GitHubRepository
changed, configFile, job
-
-
Constructor Summary
Constructors Constructor Description GitHubTagRepository(String repoFullName, URL url)
GitHubTagRepository(org.kohsuke.github.GHRepository remoteRepository)
Object that represent GitHub repository to work with
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actualiseOnChange(org.kohsuke.github.GHRepository ghRepository, TaskListener listener)
FormValidation
doBuild(org.kohsuke.stapler.StaplerRequest req)
Build using local PR state.FormValidation
doClearRepo()
FormValidation
doRebuild(org.kohsuke.stapler.StaplerRequest req)
Rebuild latest built build.FormValidation
doRebuildAllFailed()
FormValidation
doRunTrigger()
String
getDisplayName()
String
getIconFileName()
Map<String,GitHubTag>
getTags()
String
getUrlName()
-
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
-
-
-
-
Constructor Detail
-
GitHubTagRepository
public GitHubTagRepository(org.kohsuke.github.GHRepository remoteRepository) throws IOException
Object that represent GitHub repository to work with- Parameters:
remoteRepository
- remote repository full name.- Throws:
IOException
-
-
Method Detail
-
getIconFileName
public String getIconFileName()
-
getDisplayName
public String getDisplayName()
-
getUrlName
public String getUrlName()
-
actualiseOnChange
public void actualiseOnChange(@NonNull org.kohsuke.github.GHRepository ghRepository, @NonNull TaskListener listener)
- Specified by:
actualiseOnChange
in classGitHubRepository<GitHubTagRepository>
-
doClearRepo
public FormValidation doClearRepo() throws IOException
- Specified by:
doClearRepo
in classGitHubRepository<GitHubTagRepository>
- Throws:
IOException
-
doRunTrigger
public FormValidation doRunTrigger() throws IOException
- Specified by:
doRunTrigger
in classGitHubRepository<GitHubTagRepository>
- Throws:
IOException
-
doRebuildAllFailed
public FormValidation doRebuildAllFailed() throws IOException
- Specified by:
doRebuildAllFailed
in classGitHubRepository<GitHubTagRepository>
- Throws:
IOException
-
doBuild
public FormValidation doBuild(org.kohsuke.stapler.StaplerRequest req) throws IOException
Description copied from class:GitHubRepository
Build using local PR state.- Specified by:
doBuild
in classGitHubRepository<GitHubTagRepository>
- Throws:
IOException
-
doRebuild
public FormValidation doRebuild(org.kohsuke.stapler.StaplerRequest req) throws IOException
Description copied from class:GitHubRepository
Rebuild latest built build. Actions copied.- Specified by:
doRebuild
in classGitHubRepository<GitHubTagRepository>
- Throws:
IOException
-
-