Class AbstractToolPublisher

All Implemented Interfaces:
ExtensionPoint, Describable<Publisher>, BuildStep, SimpleBuildStep
Direct Known Subclasses:
JUnitPublisher, ReportGeneratorPublisher, TMSPublisher, TraceAnalysisPublisher

public abstract class AbstractToolPublisher extends AbstractReportPublisher
Common base class all report publishers which are using ecu.test as tool.
  • Constructor Details

    • AbstractToolPublisher

      public AbstractToolPublisher(@Nonnull String toolName)
      Instantiates a new AbstractToolPublisher.
      Parameters:
      toolName - the tool name
    • AbstractToolPublisher

      public AbstractToolPublisher(@Nonnull String toolName, boolean allowMissing, boolean runOnFailed, boolean archiving, boolean keepAll)
      Instantiates a new AbstractToolPublisher.
      Parameters:
      toolName - the tool name
      allowMissing - specifies whether missing reports are allowed
      runOnFailed - specifies whether this publisher even runs on a failed build
      archiving - specifies whether archiving artifacts is enabled
      keepAll - specifies whether artifacts are archived for all successful builds, otherwise only the most recent
  • Method Details

    • getToolName

      @Nonnull public String getToolName()
    • getInstallation

      public ETInstallation getInstallation()
    • setInstallation

      @DataBoundSetter public void setInstallation(ETInstallation installation)
      Sets the ecu.test installation and the derived name.
      Parameters:
      installation - the ecu.test installation
    • getToolClient

      protected ETClient getToolClient(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException, InterruptedException, ETPluginException
      Configures an ecu.test client with given workspace settings. Re-registers the according ecu.test COM server if option is enabled.
      Parameters:
      run - the run
      workspace - the workspace
      launcher - the launcher
      listener - the listener
      Returns:
      the ecu.test client
      Throws:
      IOException - signals that an I/O exception has occurred
      InterruptedException - the interrupted exception
      ETPluginException - in case of a COM exception
    • configureToolInstallation

      protected ETInstallation configureToolInstallation(Computer computer, TaskListener listener, EnvVars envVars) throws IOException, InterruptedException, ETPluginException
      Configures the tool installation for functioning in the node and the environment.
      Parameters:
      computer - the computer
      listener - the listener
      envVars - the environment variables
      Returns:
      the tool installation
      Throws:
      IOException - signals that an I/O exception has occurred
      InterruptedException - if the build gets interrupted
      ETPluginException - if the selected tool installation is not configured
    • isInstallationVerified

      public boolean isInstallationVerified(EnvVars envVars)
      Verify the installation object and updates properties if needed.
      Parameters:
      envVars - the environment variables of the run
      Returns:
      true if installation for given tool name exists, false otherwise