Package org.jenkinsci.plugins.p4.review
Class ApproveNotifier
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Notifier
-
- org.jenkinsci.plugins.p4.review.ApproveNotifier
-
- All Implemented Interfaces:
ExtensionPoint,Describable<Publisher>,BuildStep
- Direct Known Subclasses:
ApproveNotifierStep
public class ApproveNotifier extends Notifier
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApproveNotifier.DescriptorImpl-
Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description ApproveNotifier(String credential, String review, String status)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanapproveReview(ConnectionHelper p4, EnvVars env)static ApproveNotifier.DescriptorImpldescriptor()StringgetCredential()StringgetDescription()BuildStepMonitorgetRequiredMonitorService()StringgetReview()StringgetStatus()booleanperform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)voidsetDescription(String description)-
Methods inherited from class hudson.tasks.Notifier
getDescriptor
-
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, prebuild
-
-
-
-
Method Detail
-
getCredential
public String getCredential()
-
getReview
public String getReview()
-
getStatus
public String getStatus()
-
getDescription
public String getDescription()
-
setDescription
@DataBoundSetter public void setDescription(String description)
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
-
perform
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException
- Specified by:
performin interfaceBuildStep- Overrides:
performin classBuildStepCompatibilityLayer- Throws:
InterruptedExceptionIOException
-
approveReview
protected boolean approveReview(ConnectionHelper p4, EnvVars env) throws Exception
- Throws:
Exception
-
descriptor
public static ApproveNotifier.DescriptorImpl descriptor()
-
-