public class MetricsRecorder
extends hudson.tasks.Recorder
implements jenkins.tasks.SimpleBuildStep
Modifier and Type | Class and Description |
---|---|
static class |
MetricsRecorder.Descriptor
Descriptor for this step: defines the context and the UI elements.
|
hudson.tasks.Publisher.DescriptorExtensionListImpl
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory
Constructor and Description |
---|
MetricsRecorder()
Creates a new instance of
MetricsRecorder . |
Modifier and Type | Method and Description |
---|---|
String |
getClassPathFile() |
MetricsRecorder.Descriptor |
getDescriptor() |
String |
getFilePattern() |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
void |
perform(hudson.model.Run<?,?> run,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener taskListener) |
void |
setClassPathFile(String classPathFile) |
void |
setFilePattern(String filePattern) |
all, getProjectAction, needsToRunAfterFinalized, prebuild
getProjectAction, getProjectActions, perform, prebuild
@DataBoundConstructor public MetricsRecorder()
MetricsRecorder
.public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService
in interface hudson.tasks.BuildStep
public MetricsRecorder.Descriptor getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Publisher>
getDescriptor
in class hudson.tasks.Recorder
@DataBoundSetter public void setFilePattern(String filePattern)
public String getFilePattern()
public String getClassPathFile()
@DataBoundSetter public void setClassPathFile(String classPathFile)
public boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws InterruptedException, IOException
perform
in interface hudson.tasks.BuildStep
perform
in class hudson.tasks.BuildStepCompatibilityLayer
InterruptedException
IOException
public void perform(hudson.model.Run<?,?> run, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener taskListener) throws InterruptedException, IOException
perform
in interface jenkins.tasks.SimpleBuildStep
InterruptedException
IOException
Copyright © 2016–2020. All rights reserved.