public class EstimateBuilder extends hudson.tasks.Builder implements Serializable
Builder.
When the user configures the project and enables this builder,
Descriptor.newInstance(StaplerRequest) is invoked
and a new EstimateBuilder is created. The created
instance is persisted to the project configuration XML by using
XStream, so this allows you to use instance fields (like name)
to remember the configuration.
When a build is performed, the perform(AbstractBuild, Launcher, BuildListener)
method will be invoked.
| Modifier and Type | Class and Description |
|---|---|
static class |
EstimateBuilder.DescriptorImpl
Descriptor for
HelloWorldBuilder. |
| Constructor and Description |
|---|
EstimateBuilder(String name,
String token,
String archiveFilePath,
String regWhichIncludedModules,
String reportConfigName,
String uri,
String saasuri,
String language,
String regexExclude,
Boolean testOnly,
Long maxNumberOfViolations,
Boolean failBlockTotalVio,
Long maxNumberOfBlockerViolations,
Boolean failBlockBlockerVio,
Long maxNumberOfImportantViolations,
Boolean failBlockImportantVio,
Long maxNumberOfOptimizationViolations,
Boolean failBlockOptimizationVio,
Long maxNumberOfWarningViolations,
Boolean failBlockWarningVio) |
getProjectAction, getProjectAction, getProjectActions, perform, prebuild@DataBoundConstructor public EstimateBuilder(String name, String token, String archiveFilePath, String regWhichIncludedModules, String reportConfigName, String uri, String saasuri, String language, String regexExclude, Boolean testOnly, Long maxNumberOfViolations, Boolean failBlockTotalVio, Long maxNumberOfBlockerViolations, Boolean failBlockBlockerVio, Long maxNumberOfImportantViolations, Boolean failBlockImportantVio, Long maxNumberOfOptimizationViolations, Boolean failBlockOptimizationVio, Long maxNumberOfWarningViolations, Boolean failBlockWarningVio)
public String getName()
public String getToken()
public String getArchiveFilePath()
public String getRegWhichIncludedModules()
public String getReportConfigName()
public String getUri()
public String getSaasuri()
public String getLanguage()
public String getRegexExclude()
public Boolean getTestOnly()
public Boolean getFailBlockTotalVio()
public Boolean getFailBlockBlockerVio()
public Boolean getFailBlockImportantVio()
public Boolean getFailBlockWarningVio()
public Boolean getFailBlockOptimizationVio()
public Long getMaxNumberOfViolations()
public Long getMaxNumberOfBlockerViolations()
public Long getMaxNumberOfImportantViolations()
public Long getMaxNumberOfWarningViolations()
public Long getMaxNumberOfOptimizationViolations()
public boolean isUploadSucceeded()
public void setUploadSucceeded(boolean uploadSucceeded)
public boolean perform(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.BuildStepCompatibilityLayerpublic static void writeMetricFile(String fileName, Object numberValue) throws IOException
IOExceptionprotected boolean sendTheFiles(File workspace, hudson.model.BuildListener listener)
public EstimateBuilder.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>getDescriptor in class hudson.tasks.BuilderCopyright © 2004-2015. All Rights Reserved.