Package com.absint.astree
Class AstreeBuilder
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
com.absint.astree.AstreeBuilder
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,SimpleBuildStep
When the user configures the project and enables this builder,
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.- Author:
- AbsInt Angewandte Informatik GmbH
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
ConstructorsConstructorDescriptionAstreeBuilder
(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, AnalysisServerConfiguration analysisSrv) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
finalize()
Override finalize method to ensure existing a3c client processes are killed upon destruction of AstreeBuilder objects.Returns the currently set analysis ID used for the analysis run.Returns the currently set path to the DAX file used for the analysis run.Returns the currently set path used as output directory for the analyses.boolean
Indicates whether the project is to be deleted on the server after the analysis run.boolean
Indicates whether the analysis run is configured to potentially fail a build.boolean
Indicates whether the analysis run is configured to produce the (text) preprocess output report.boolean
Indicates whether the analysis run is configured to produce the XML alarms-by-category summary.boolean
Indicates whether the analysis run is configured to produce the XML alarms-by-file summary.boolean
Indicates whether the analysis run is configured to produce the XML alarms-by-occurence summary.boolean
Indicates whether the analysis run is configured to produce the XML coverage summary.boolean
Indicates whether the analysis run is configured to produce the XML overview summary.boolean
Indicates whether the analysis run is configured to produce the XML rule checks summary.boolean
Indicates whether the analysis run is configured to be temporarily skipped (i.e., no analysis is to be done).void
perform
(Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) Methods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuild
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuild
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Constructor Details
-
AstreeBuilder
@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, AnalysisServerConfiguration analysisSrv)
-
-
Method Details
-
getDax_file
Returns the currently set path to the DAX file used for the analysis run.- Returns:
- java.lang.String
-
getAnalysis_id
Returns the currently set analysis ID used for the analysis run.- Returns:
- java.lang.String
-
getOutput_dir
Returns the currently set path used as output directory for the analyses.- Returns:
- java.lang.String
-
isFailonswitch
public boolean isFailonswitch()Indicates whether the analysis run is configured to potentially fail a build.- Returns:
- boolean
-
getFailon
- Returns:
- java.lang.String
-
isSkip_analysis
public boolean isSkip_analysis()Indicates whether the analysis run is configured to be temporarily skipped (i.e., no analysis is to be done).- Returns:
- boolean
-
isGenXMLOverview
public boolean isGenXMLOverview()Indicates whether the analysis run is configured to produce the XML overview summary.- Returns:
- boolean
-
isGenXMLCoverage
public boolean isGenXMLCoverage()Indicates whether the analysis run is configured to produce the XML coverage summary.- Returns:
- boolean
-
isGenXMLAlarmsByOccurence
public boolean isGenXMLAlarmsByOccurence()Indicates whether the analysis run is configured to produce the XML alarms-by-occurence summary.- Returns:
- boolean
-
isGenXMLAlarmsByCategory
public boolean isGenXMLAlarmsByCategory()Indicates whether the analysis run is configured to produce the XML alarms-by-category summary.- Returns:
- boolean
-
isGenXMLAlarmsByFile
public boolean isGenXMLAlarmsByFile()Indicates whether the analysis run is configured to produce the XML alarms-by-file summary.- Returns:
- boolean
-
isGenXMLRulechecks
public boolean isGenXMLRulechecks()Indicates whether the analysis run is configured to produce the XML rule checks summary.- Returns:
- boolean
-
isGenPreprocessOutput
public boolean isGenPreprocessOutput()Indicates whether the analysis run is configured to produce the (text) preprocess output report.- Returns:
- boolean
-
isDropAnalysis
public boolean isDropAnalysis()Indicates whether the project is to be deleted on the server after the analysis run.- Returns:
- boolean
-
perform
- Specified by:
perform
in interfaceSimpleBuildStep
-
finalize
protected void finalize()Override finalize method to ensure existing a3c client processes are killed upon destruction of AstreeBuilder objects. -
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<Builder>
- Overrides:
getDescriptor
in classBuilder
-