Class AstreeBuilder

All Implemented Interfaces:
ExtensionPoint, Describable<Builder>, BuildStep, SimpleBuildStep

public class AstreeBuilder extends Builder implements 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
  • 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

      public String getDax_file()
      Returns the currently set path to the DAX file used for the analysis run.
      Returns:
      java.lang.String
    • getAnalysis_id

      public String getAnalysis_id()
      Returns the currently set analysis ID used for the analysis run.
      Returns:
      java.lang.String
    • getOutput_dir

      public 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

      public String 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

      public void perform(Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener)
      Specified by:
      perform in interface SimpleBuildStep
    • finalize

      protected void finalize()
      Override finalize method to ensure existing a3c client processes are killed upon destruction of AstreeBuilder objects.
      Overrides:
      finalize in class Object
    • getDescriptor

      public AstreeBuilder.DescriptorImpl getDescriptor()
      Specified by:
      getDescriptor in interface Describable<Builder>
      Overrides:
      getDescriptor in class Builder