Class PostBuild
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Recorder
-
- io.jenkins.plugins.actions.postbuild.builder.PostBuild
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
- Direct Known Subclasses:
AddFeedStatus
,ItemPostBuilder
,ReleasePostBuilder
,SprintsPostBuilder
public abstract class PostBuild extends Recorder
-
-
Nested Class Summary
-
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 Modifier and Type Field Description protected static Logger
LOGGER
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description PostBuildDescriptor
getDescriptor()
BaseModel
getForm()
String
getProjectNumber()
BuildStepMonitor
getRequiredMonitorService()
boolean
perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
abstract String
perform(Function<String,String> replacer)
-
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, prebuild
-
-
-
-
Field Detail
-
LOGGER
protected static final Logger LOGGER
-
-
Constructor Detail
-
PostBuild
public PostBuild(BaseModel form)
-
-
Method Detail
-
getForm
public BaseModel getForm()
-
getProjectNumber
public String getProjectNumber()
-
perform
public abstract String perform(Function<String,String> replacer) throws Exception
- Throws:
Exception
-
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
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
-
getDescriptor
public PostBuildDescriptor getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<Publisher>
- Overrides:
getDescriptor
in classRecorder
-
-