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 Summary
Constructors Constructor Description GitHubPollingLogAction(Job<?,?> job)
GitHubPollingLogAction(Run run)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
doPollingLog(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
TODO is it secure?Job<?,?>
getJob()
String
getLog()
abstract String
getPollingFileName()
File
getPollingLogFile()
AnnotatedLargeText
getPollingLogText()
Run<?,?>
getRun()
boolean
isLogExists()
void
onAttached(Run<?,?> run)
void
onLoad(Run<?,?> run)
void
setJob(Job<?,?> job)
void
setRun(Run<?,?> run)
void
writePollingLogTo(org.apache.commons.jelly.XMLOutput out)
Writes the annotated log to the given output.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.model.Action
getDisplayName, getIconFileName, getUrlName
-
-
-
-
Method Detail
-
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 interfaceRunAction2
-
onLoad
public void onLoad(Run<?,?> run)
- Specified by:
onLoad
in interfaceRunAction2
-
-