public class AstreeBuilder
extends hudson.tasks.Builder
implements jenkins.tasks.SimpleBuildStep
Descriptor.newInstance(StaplerRequest)
is invoked
and a new AstreeBuilder
is created. The created
instance is persisted to the project configuration XML by using
XStream, so this allows you to use instance fields
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.Modifier and Type | Class and Description |
---|---|
static class |
AstreeBuilder.DescriptorImpl
Descriptor for
AstreeBuilder . |
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory
Constructor and Description |
---|
AstreeBuilder(String dax_file,
String analysis_id,
String output_dir,
boolean skip_analysis,
boolean genXMLOverview,
boolean genXMLCoverage,
boolean genXMLAlarmsByOccurence,
boolean genXMLAlarmsByCategory,
boolean genXMLAlarmsByFile,
boolean genXMLRulechecks,
boolean dropAnalysis,
boolean genPreprocessOutput,
FailonSwitch failonswitch) |
Modifier and Type | Method and Description |
---|---|
protected void |
finalize()
Override finalize method to ensure existing a3c client processes are killed upon destruction
of AstreeBuilder objects.
|
String |
getAnalysis_id()
Returns the currently set analysis ID used for the analysis run.
|
String |
getDax_file()
Returns the currently set path to the DAX file used for the analysis run.
|
AstreeBuilder.DescriptorImpl |
getDescriptor() |
String |
getFailon() |
String |
getOutput_dir()
Returns the currently set path used as output directory for the analyses.
|
boolean |
isDropAnalysis()
Indicates whether the project is to be deleted on the server after
the analysis run.
|
boolean |
isFailonswitch()
Indicates whether the analysis run is configured to potentially fail a build.
|
boolean |
isGenPreprocessOutput()
Indicates whether the analysis run is configured to produce the
(text) preprocess output report.
|
boolean |
isGenXMLAlarmsByCategory()
Indicates whether the analysis run is configured to produce the
XML alarms-by-category summary.
|
boolean |
isGenXMLAlarmsByFile()
Indicates whether the analysis run is configured to produce the
XML alarms-by-file summary.
|
boolean |
isGenXMLAlarmsByOccurence()
Indicates whether the analysis run is configured to produce the
XML alarms-by-occurence summary.
|
boolean |
isGenXMLCoverage()
Indicates whether the analysis run is configured to produce the
XML coverage summary.
|
boolean |
isGenXMLOverview()
Indicates whether the analysis run is configured to produce the
XML overview summary.
|
boolean |
isGenXMLRulechecks()
Indicates whether the analysis run is configured to produce the
XML rule checks summary.
|
boolean |
isSkip_analysis()
Indicates whether the analysis run is configured to
be temporarily skipped (i.e., no analysis is to be done).
|
void |
perform(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
@DataBoundConstructor public AstreeBuilder(String dax_file, String analysis_id, String output_dir, boolean skip_analysis, boolean genXMLOverview, boolean genXMLCoverage, boolean genXMLAlarmsByOccurence, boolean genXMLAlarmsByCategory, boolean genXMLAlarmsByFile, boolean genXMLRulechecks, boolean dropAnalysis, boolean genPreprocessOutput, FailonSwitch failonswitch)
public String getDax_file()
public String getAnalysis_id()
public String getOutput_dir()
public boolean isFailonswitch()
public String getFailon()
public boolean isSkip_analysis()
public boolean isGenXMLOverview()
public boolean isGenXMLCoverage()
public boolean isGenXMLAlarmsByOccurence()
public boolean isGenXMLAlarmsByCategory()
public boolean isGenXMLAlarmsByFile()
public boolean isGenXMLRulechecks()
public boolean isGenPreprocessOutput()
public boolean isDropAnalysis()
public void perform(hudson.model.Run<?,?> build, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener)
perform
in interface jenkins.tasks.SimpleBuildStep
protected void finalize()
public AstreeBuilder.DescriptorImpl getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Builder>
getDescriptor
in class hudson.tasks.Builder
Copyright © 2016–2018. All rights reserved.