Class GitHubPollingLogAction

java.lang.Object
com.github.kostyasha.github.integration.generic.GitHubPollingLogAction
All Implemented Interfaces:
hudson.matrix.MatrixChildAction, Action, ModelObject, RunAction2
Direct Known Subclasses:
GitHubBranchPollingLogAction, GitHubPRPollingLogAction

public abstract class GitHubPollingLogAction extends Object implements hudson.matrix.MatrixChildAction, RunAction2
Author:
Kanstantsin Shautsou
  • Constructor Details

    • GitHubPollingLogAction

      public GitHubPollingLogAction(Job<?,?> job)
    • GitHubPollingLogAction

      public GitHubPollingLogAction(Run run)
  • Method Details

    • getPollingFileName

      public abstract String getPollingFileName()
    • getJob

      @CheckForNull public Job<?,?> getJob()
    • setJob

      public void setJob(Job<?,?> job)
    • getRun

      @CheckForNull public Run<?,?> getRun()
    • setRun

      public void setRun(Run<?,?> run)
    • getLog

      public String getLog() throws IOException
      Throws:
      IOException
    • isLogExists

      public boolean isLogExists()
    • doPollingLog

      public void doPollingLog(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException
      TODO is it secure?
      Throws:
      IOException
    • getPollingLogText

      public AnnotatedLargeText getPollingLogText()
    • writePollingLogTo

      public void writePollingLogTo(org.apache.commons.jelly.XMLOutput out) throws IOException
      Writes the annotated log to the given output.
      Throws:
      IOException
    • getPollingLogFile

      @NonNull public File getPollingLogFile()
    • onAttached

      public void onAttached(Run<?,?> run)
      Specified by:
      onAttached in interface RunAction2
    • onLoad

      public void onLoad(Run<?,?> run)
      Specified by:
      onLoad in interface RunAction2