Class GroovyPostbuildRecorder
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Recorder
-
- org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder
-
- All Implemented Interfaces:
ExtensionPoint
,hudson.matrix.MatrixAggregatable
,Describable<Publisher>
,BuildStep
public class GroovyPostbuildRecorder extends Recorder implements hudson.matrix.MatrixAggregatable
This class associatesBadgeAction
s to a build.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GroovyPostbuildRecorder.BadgeManager
-
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 GroovyPostbuildRecorder(org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript script, int behavior, boolean runForMatrixParent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description hudson.matrix.MatrixAggregator
createAggregator(hudson.matrix.MatrixBuild build, Launcher launcher, BuildListener listener)
int
getBehavior()
GroovyPostbuildDescriptor
getDescriptor()
Action
getProjectAction(AbstractProject<?,?> project)
BuildStepMonitor
getRequiredMonitorService()
org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript
getScript()
boolean
isRunForMatrixParent()
boolean
perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
-
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectActions, perform, prebuild
-
-
-
-
Method Detail
-
getProjectAction
public final Action getProjectAction(AbstractProject<?,?> project)
- Specified by:
getProjectAction
in interfaceBuildStep
- Overrides:
getProjectAction
in classBuildStepCompatibilityLayer
-
getDescriptor
public GroovyPostbuildDescriptor getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<Publisher>
- Overrides:
getDescriptor
in classRecorder
-
perform
public final 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 final BuildStepMonitor getRequiredMonitorService()
- Specified by:
getRequiredMonitorService
in interfaceBuildStep
-
getScript
public org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript getScript()
-
getBehavior
public int getBehavior()
-
isRunForMatrixParent
public boolean isRunForMatrixParent()
-
createAggregator
public hudson.matrix.MatrixAggregator createAggregator(hudson.matrix.MatrixBuild build, Launcher launcher, BuildListener listener)
- Specified by:
createAggregator
in interfacehudson.matrix.MatrixAggregatable
- Parameters:
build
-launcher
-listener
-- Returns:
- See Also:
MatrixAggregatable.createAggregator(hudson.matrix.MatrixBuild, hudson.Launcher, hudson.model.BuildListener)
-
-