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 class
ApproveNotifier.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 boolean
approveReview(ConnectionHelper p4, EnvVars env)
static ApproveNotifier.DescriptorImpl
descriptor()
String
getCredential()
String
getDescription()
BuildStepMonitor
getRequiredMonitorService()
String
getReview()
String
getStatus()
boolean
perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
void
setDescription(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:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Throws:
InterruptedException
IOException
-
approveReview
protected boolean approveReview(ConnectionHelper p4, EnvVars env) throws Exception
- Throws:
Exception
-
descriptor
public static ApproveNotifier.DescriptorImpl descriptor()
-
-