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 LoggerLOGGER-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description PostBuildDescriptorgetDescriptor()BaseModelgetForm()StringgetProjectNumber()BuildStepMonitorgetRequiredMonitorService()booleanperform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)abstract Stringperform(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:
performin interfaceBuildStep- Overrides:
performin classBuildStepCompatibilityLayer- Throws:
InterruptedExceptionIOException
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
-
getDescriptor
public PostBuildDescriptor getDescriptor()
- Specified by:
getDescriptorin interfaceDescribable<Publisher>- Overrides:
getDescriptorin classRecorder
-
-