|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritDelayedApprover
public class GerritDelayedApprover
Triggers a build previously run to send its report to Gerrit, if it hadn't yet.
Nested Class Summary | |
---|---|
static class |
GerritDelayedApprover.GerritDelayedApproverDescriptor
Descriptor class. |
Nested classes/interfaces inherited from class hudson.tasks.Publisher |
---|
hudson.tasks.Publisher.DescriptorExtensionListImpl |
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep |
---|
hudson.tasks.BuildStep.PublisherList |
Field Summary | |
---|---|
static GerritDelayedApprover.GerritDelayedApproverDescriptor |
DESCRIPTOR
The associated descriptor instance. |
Fields inherited from interface hudson.tasks.BuildStep |
---|
BUILDERS, PUBLISHERS |
Constructor Summary | |
---|---|
GerritDelayedApprover(String delayedJob,
String delayedBuildNumber)
Default DataBound Constructor. |
Method Summary | |
---|---|
String |
getDelayedBuildNumber()
The delayedBuildNumber, ie number of the build which may need a delayed approval. |
String |
getDelayedJob()
The delayedJob, ie the name of the job which may need a delayed approval. |
hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> |
getDescriptor()
getter for the Descriptor. |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService()
No concurrency management is required, new style extension. |
hudson.model.AbstractBuild |
locateBuild(String jobName,
int buildNumber)
Finds a build based on the project name and build number. |
boolean |
needsToRunAfterFinalized()
This extension needs to run after the build is completed. |
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
The actual performer method which will run in a post-build step and close a Gerrit Triggered event. |
void |
performLogger(PrintStream consoleLogger,
String message)
Logging method which will log to the build's output if possible (not possible during unit-tests). |
void |
setDelayedBuildNumber(String delayedBuildNumber)
Sets the delayedBuildNumber. |
void |
setDelayedJob(String delayedJob)
Sets the delayedJob. |
Methods inherited from class hudson.tasks.Publisher |
---|
all, getProjectAction, prebuild |
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer |
---|
getProjectAction, getProjectActions, perform, prebuild |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface hudson.tasks.BuildStep |
---|
getProjectAction, getProjectActions, prebuild |
Field Detail |
---|
public static final GerritDelayedApprover.GerritDelayedApproverDescriptor DESCRIPTOR
Constructor Detail |
---|
@DataBoundConstructor public GerritDelayedApprover(String delayedJob, String delayedBuildNumber)
delayedJob
- the name of the job which may need a delayed approval. buildVariables are expanded.delayedBuildNumber
- the number of the build which may need a delayed approval. buildVariables are expanded.Method Detail |
---|
public String getDelayedBuildNumber()
public void setDelayedBuildNumber(String delayedBuildNumber)
delayedBuildNumber
- the delayedBuildNumberpublic String getDelayedJob()
public void setDelayedJob(String delayedJob)
delayedJob
- the delayedJobpublic hudson.tasks.BuildStepMonitor getRequiredMonitorService()
public boolean needsToRunAfterFinalized()
needsToRunAfterFinalized
in class hudson.tasks.Publisher
public boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws InterruptedException
perform
in interface hudson.tasks.BuildStep
perform
in class hudson.tasks.BuildStepCompatibilityLayer
build
- current buildlauncher
- launcherlistener
- the build listener
InterruptedException
- if interruptedpublic void performLogger(PrintStream consoleLogger, String message)
consoleLogger
- the logger to use for loggingmessage
- the message to logpublic hudson.model.AbstractBuild locateBuild(String jobName, int buildNumber)
jobName
- the name of the project inspectedbuildNumber
- the number of the build searched
public hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Publisher>
getDescriptor
in class hudson.tasks.Notifier
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |