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
This class associates
BadgeAction
s to a build.-
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 inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
ConstructorDescriptionGroovyPostbuildRecorder
(org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript script, int behavior, boolean runForMatrixParent) -
Method Summary
Modifier and TypeMethodDescriptionhudson.matrix.MatrixAggregator
createAggregator
(hudson.matrix.MatrixBuild build, Launcher launcher, BuildListener listener) int
final Action
getProjectAction
(AbstractProject<?, ?> project) final BuildStepMonitor
org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript
boolean
final 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
-
Constructor Details
-
GroovyPostbuildRecorder
@DataBoundConstructor public GroovyPostbuildRecorder(org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript script, int behavior, boolean runForMatrixParent)
-
-
Method Details
-
getProjectAction
- Specified by:
getProjectAction
in interfaceBuildStep
- Overrides:
getProjectAction
in classBuildStepCompatibilityLayer
-
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
- 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)
-