public class FireLineBuilder
extends hudson.tasks.Builder
implements jenkins.tasks.SimpleBuildStep
Builder.
When the user configures the project and enables this builder,
Descriptor.newInstance(StaplerRequest) is invoked and a new
FireLineBuilder is created. The created instance is persisted to the
project configuration XML by using XStream, so this allows you to use
instance fields (like configuration) to remember the configuration.
When a build is performed, the perform(hudson.model.Run<?, ?>, hudson.FilePath, hudson.Launcher, hudson.model.TaskListener) method will be invoked.
| 限定符和类型 | 类和说明 |
|---|---|
static class |
FireLineBuilder.DescriptorImpl
Descriptor for
FireLineBuilder. |
| 构造器和说明 |
|---|
FireLineBuilder(String config,
String reportPath) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getConfiguration() |
FireLineBuilder.DescriptorImpl |
getDescriptor() |
static String |
getMemUsage() |
String |
getReportPath() |
void |
perform(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuildpublic static final String platform
public String getConfiguration()
public String getReportPath()
public void perform(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
throws InterruptedException
perform 在接口中 jenkins.tasks.SimpleBuildStepInterruptedExceptionpublic FireLineBuilder.DescriptorImpl getDescriptor()
getDescriptor 在接口中 hudson.model.Describable<hudson.tasks.Builder>getDescriptor 在类中 hudson.tasks.Builderpublic static String getMemUsage()
Copyright © 2016–2017. All rights reserved.