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

public abstract class GitHubCause<T extends GitHubCause<T>> extends Cause
Author:
Kanstantsin Shautsou
  • Constructor Details

    • GitHubCause

      public GitHubCause()
  • Method Details

    • withLocalRepo

      public GitHubCause withLocalRepo(@NonNull GitHubRepository localRepo)
    • isSkip

      public boolean isSkip()
      When set and event got positive condition says to skip job triggering.
    • withSkip

      public GitHubCause<T> withSkip(boolean skip)
    • getHtmlUrl

      @CheckForNull public URL getHtmlUrl()
      For printing branch url on left builds panel (build description).
    • withHtmlUrl

      public GitHubCause<T> withHtmlUrl(URL htmlUrl)
    • getGitUrl

      public String getGitUrl()
    • withGitUrl

      public GitHubCause<T> withGitUrl(String gitUrl)
    • getSshUrl

      public String getSshUrl()
    • withSshUrl

      public GitHubCause<T> withSshUrl(String sshUrl)
    • getPollingLog

      public String getPollingLog()
    • withPollingLog

      public GitHubCause<T> withPollingLog(String pollingLog)
    • setPollingLog

      public void setPollingLog(String pollingLog)
    • setPollingLogFile

      public void setPollingLogFile(File logFile) throws IOException
      Throws:
      IOException
    • getReason

      public String getReason()
    • withReason

      public GitHubCause<T> withReason(String reason)
    • getRemoteData

      public Object getRemoteData()
    • withRemoteData

      public GitHubCause<T> withRemoteData(Object remoteData)
    • getTitle

      @NonNull public String getTitle()
      Returns:
      the title of the cause, never null.
    • withTitle

      public GitHubCause<T> withTitle(String title)
    • getAbbreviatedTitle

      public String getAbbreviatedTitle()
      Returns:
      at most the first 30 characters of the title, or
    • fillParameters

      public abstract void fillParameters(List<ParameterValue> params)
    • createSCMHead

      public abstract GitHubSCMHead<T> createSCMHead(String sourceId)
    • createSCMRevision

      public GitHubSCMRevision createSCMRevision(String sourceId)
    • skipTrigger

      public static <T extends GitHubCause<T>> T skipTrigger(List<? extends T> causes)