Class GitHubTagDecisionContext
java.lang.Object
com.github.kostyasha.github.integration.generic.GitHubDecisionContext<GitHubTagEvent,GitHubTagCause>
com.github.kostyasha.github.integration.generic.GitHubTagDecisionContext
- Author:
- Kanstantsin Shautsou
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionGitHubTagDecisionContext
(org.kohsuke.github.GHTag remoteTag, GitHubTag localTag, GitHubTagRepository localRepo, GitHubTagHandler tagHandler, GitHubSCMSource scmSource, TaskListener listener) -
Method Summary
Methods inherited from class com.github.kostyasha.github.integration.generic.GitHubDecisionContext
getListener, getRemoteRepository, getScmSource, getTrigger
-
Constructor Details
-
GitHubTagDecisionContext
public GitHubTagDecisionContext(org.kohsuke.github.GHTag remoteTag, GitHubTag localTag, @NonNull GitHubTagRepository localRepo, GitHubTagHandler tagHandler, GitHubSCMSource scmSource, TaskListener listener)
-
-
Method Details
-
getRemoteTag
@CheckForNull public org.kohsuke.github.GHTag getRemoteTag()- Returns:
- current tag state fetched from GH.
-
getLocalTag
- Returns:
- tag state from last run saved in jenkins. null when not exist before.
-
getLocalRepo
- Returns:
- local repository state. Useful to extract repo URLs for example.
-
getHandler
- Overrides:
getHandler
in classGitHubDecisionContext<GitHubTagEvent,
GitHubTagCause>
-
checkEvent
- Specified by:
checkEvent
in classGitHubDecisionContext<GitHubTagEvent,
GitHubTagCause> - Throws:
IOException
-
newCause
- Specified by:
newCause
in classGitHubDecisionContext<GitHubTagEvent,
GitHubTagCause>
-
newGitHubTagDecisionContext
-