Package org.jenkinsci.plugins.p4.publish
Class PublishNotifier
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Notifier
-
- org.jenkinsci.plugins.p4.publish.PublishNotifier
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
- Direct Known Subclasses:
PublishNotifierStep
public class PublishNotifier extends Notifier
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PublishNotifier.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 PublishNotifier(String credential, Workspace workspace, Publish publish)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
cleanupPerforceClient(Run<?,?> run, FilePath buildWorkspace, TaskListener listener)
protected P4ChangeEntry
createP4ChangeEntry(ClientHelper p4, long change, boolean isPublished)
static PublishNotifier.DescriptorImpl
descriptor()
String
getCredential()
Publish
getPublish()
BuildStepMonitor
getRequiredMonitorService()
Workspace
getWorkspace()
boolean
perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
protected void
storeChangeToChangelog(Run<?,?> run, TaskListener listener, String publishedChangeID, PublishTask task, FilePath buildWorkspace)
-
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()
-
getWorkspace
public Workspace getWorkspace()
-
getPublish
public Publish getPublish()
-
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
-
cleanupPerforceClient
protected void cleanupPerforceClient(Run<?,?> run, FilePath buildWorkspace, TaskListener listener) throws InterruptedException, IOException
- Throws:
InterruptedException
IOException
-
storeChangeToChangelog
protected void storeChangeToChangelog(Run<?,?> run, TaskListener listener, String publishedChangeID, PublishTask task, FilePath buildWorkspace) throws AbortException
- Throws:
AbortException
-
createP4ChangeEntry
protected P4ChangeEntry createP4ChangeEntry(ClientHelper p4, long change, boolean isPublished) throws Exception
- Throws:
Exception
-
descriptor
public static PublishNotifier.DescriptorImpl descriptor()
-
-