Class GitHubCause<T extends GitHubCause<T>>
java.lang.Object
hudson.model.Cause
com.github.kostyasha.github.integration.generic.GitHubCause<T>
- Direct Known Subclasses:
AbstractGitHubBranchCause
,GitHubPRCause
- Author:
- Kanstantsin Shautsou
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Cause
Cause.LegacyCodeCause, Cause.RemoteCause, Cause.UpstreamCause, Cause.UserCause, Cause.UserIdCause
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract GitHubSCMHead<T>
createSCMHead
(String sourceId) createSCMRevision
(String sourceId) abstract void
fillParameters
(List<ParameterValue> params) For printing branch url on left builds panel (build description).getTitle()
boolean
isSkip()
When set and event got positive condition says to skip job triggering.void
setPollingLog
(String pollingLog) void
setPollingLogFile
(File logFile) static <T extends GitHubCause<T>>
TskipTrigger
(List<? extends T> causes) withGitUrl
(String gitUrl) withHtmlUrl
(URL htmlUrl) withLocalRepo
(GitHubRepository localRepo) withPollingLog
(String pollingLog) withReason
(String reason) withRemoteData
(Object remoteData) withSkip
(boolean skip) withSshUrl
(String sshUrl)
-
Constructor Details
-
GitHubCause
public GitHubCause()
-
-
Method Details
-
withLocalRepo
-
isSkip
public boolean isSkip()When set and event got positive condition says to skip job triggering. -
withSkip
-
getHtmlUrl
For printing branch url on left builds panel (build description). -
withHtmlUrl
-
getGitUrl
-
withGitUrl
-
getSshUrl
-
withSshUrl
-
getPollingLog
-
withPollingLog
-
setPollingLog
-
setPollingLogFile
- Throws:
IOException
-
getReason
-
withReason
-
getRemoteData
-
withRemoteData
-
getTitle
- Returns:
- the title of the cause, never null.
-
withTitle
-
getAbbreviatedTitle
- Returns:
- at most the first 30 characters of the title, or
-
fillParameters
-
createSCMHead
-
createSCMRevision
-
skipTrigger
-