Class ETInstance
java.lang.Object
de.tracetronic.jenkins.plugins.ecutest.tool.pipeline.ETInstance
- All Implemented Interfaces:
Serializable
Class holding ecu.test installation specific settings in order to start and stop instances.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks whether the currently selected configurations are started.void
publishGenerators
(List<ReportGeneratorConfig> generators, List<ReportGeneratorConfig> customGenerators) Publishes generator reports with default settings.void
publishGenerators
(List<ReportGeneratorConfig> generators, List<ReportGeneratorConfig> customGenerators, boolean allowMissing, boolean runOnFailed, boolean archiving, boolean keepAll) Publishes generator reports with all available settings.void
publishGenerators
(Map<String, Object> settings) Publishes generator reports with given settings as named arguments map.void
publishTMS
(String credentialsId) Publishes reports to a test management system with default settings.void
publishTMS
(String credentialsId, int timeout, boolean allowMissing, boolean runOnFailed, boolean archiving, boolean keepAll) Publishes reports to a test management system with all available settings.void
publishTMS
(Map<String, Object> settings) Publishes reports to a test management system with given settings as named arguments map.void
Runs the trace analyses and publishes the generated reports with default settings.void
publishTraceAnalysis
(boolean mergeReports, boolean createReportDir, int timeout, boolean allowMissing, boolean runOnFailed, boolean archiving, boolean keepAll) Runs the trace analyses and publishes the generated reports with all available settings.void
publishTraceAnalysis
(Map<String, Object> settings) Runs the trace analyses and publishes the generated reports with given settings as named arguments map.void
Publishes UNIT reports with default settings.void
publishUNIT
(double unstableThreshold, double failedThreshold, boolean allowMissing, boolean runOnFailed) Publishes UNIT reports with all available settings.void
publishUNIT
(Map<String, Object> settings) Publishes UNIT reports with given settings as named arguments map.void
setScript
(org.jenkinsci.plugins.workflow.cps.CpsScript script) Sets the pipeline script.void
start()
Starts ecu.test with default settings.void
Starts ecu.test with given workspace settings.void
start
(String workspaceDir, String settingsDir, int timeout, boolean debugMode, boolean keepInstance, boolean updateUserLibs) Starts ecu.test with all available settings.void
Starts ecu.test with given settings as named arguments map.void
startTS()
Starts Tool-Server with default settings.void
Starts Tool-Server with all available settings.void
Starts Tool-Server with given settings as named arguments map.void
stop()
Stops ecu.test with default settings.void
stop
(int timeout) Stops ecu.test with all available settings.void
Stops ecu.test with given settings as named arguments map.void
stopTS()
Stops Tool-Server with default settings.void
stopTS
(int timeout) Stops Tool-Server with all available settings.void
Stops Tool-Server with given settings as named arguments map.
-
Constructor Details
-
ETInstance
Instantiates a newETInstance
.- Parameters:
installation
- the ecu.test installation
-
-
Method Details
-
getInstallation
-
setScript
public void setScript(org.jenkinsci.plugins.workflow.cps.CpsScript script) Sets the pipeline script.- Parameters:
script
- the pipeline script
-
start
public void start()Starts ecu.test with default settings. -
start
Starts ecu.test with given workspace settings.- Parameters:
workspaceDir
- the workspace directorysettingsDir
- the settings directory
-
start
public void start(String workspaceDir, String settingsDir, int timeout, boolean debugMode, boolean keepInstance, boolean updateUserLibs) Starts ecu.test with all available settings.- Parameters:
workspaceDir
- the workspace directorysettingsDir
- the settings directorytimeout
- the timeoutdebugMode
- specifies whether to enable debug modekeepInstance
- specifies whether to re-use the previous instanceupdateUserLibs
- specifies whether to update all user libraries
-
start
Starts ecu.test with given settings as named arguments map.- Parameters:
settings
- the settings map
-
stop
public void stop()Stops ecu.test with default settings. -
stop
public void stop(int timeout) Stops ecu.test with all available settings.- Parameters:
timeout
- the timeout
-
stop
Stops ecu.test with given settings as named arguments map.- Parameters:
settings
- the settings map
-
startTS
public void startTS()Starts Tool-Server with default settings. -
startTS
Starts Tool-Server with all available settings.- Parameters:
toolLibsIniPath
- the alternative ToolLibs.ini pathtcpPort
- the alternative TCP porttimeout
- the timeoutkeepInstance
- specifies whether to re-use the previous instance
-
startTS
Starts Tool-Server with given settings as named arguments map.- Parameters:
settings
- the settings map
-
stopTS
public void stopTS()Stops Tool-Server with default settings. -
stopTS
public void stopTS(int timeout) Stops Tool-Server with all available settings.- Parameters:
timeout
- the timeout
-
stopTS
Stops Tool-Server with given settings as named arguments map.- Parameters:
settings
- the settings map
-
publishUNIT
public void publishUNIT()Publishes UNIT reports with default settings. -
publishUNIT
public void publishUNIT(double unstableThreshold, double failedThreshold, boolean allowMissing, boolean runOnFailed) Publishes UNIT reports with all available settings.- Parameters:
unstableThreshold
- the unstable thresholdfailedThreshold
- the failed thresholdallowMissing
- specifies whether missing reports are allowedrunOnFailed
- specifies whether this publisher even runs on a failed build
-
publishUNIT
Publishes UNIT reports with given settings as named arguments map.- Parameters:
settings
- the settings map
-
publishGenerators
public void publishGenerators(List<ReportGeneratorConfig> generators, List<ReportGeneratorConfig> customGenerators) Publishes generator reports with default settings.- Parameters:
generators
- the report generatorscustomGenerators
- the custom report generators
-
publishGenerators
public void publishGenerators(List<ReportGeneratorConfig> generators, List<ReportGeneratorConfig> customGenerators, boolean allowMissing, boolean runOnFailed, boolean archiving, boolean keepAll) Publishes generator reports with all available settings.- Parameters:
generators
- the report generatorscustomGenerators
- the custom report generatorsallowMissing
- specifies whether missing reports are allowedrunOnFailed
- specifies whether this publisher even runs on a failed buildarchiving
- specifies whether archiving artifacts is enabledkeepAll
- specifies whether artifacts are archived for all successful builds, otherwise only the most recent
-
publishGenerators
Publishes generator reports with given settings as named arguments map.- Parameters:
settings
- the settings map
-
publishTMS
Publishes reports to a test management system with default settings.- Parameters:
credentialsId
- the credentials id
-
publishTMS
public void publishTMS(String credentialsId, int timeout, boolean allowMissing, boolean runOnFailed, boolean archiving, boolean keepAll) Publishes reports to a test management system with all available settings.- Parameters:
credentialsId
- the credentials idtimeout
- the timeoutallowMissing
- specifies whether missing reports are allowedrunOnFailed
- specifies whether this publisher even runs on a failed buildarchiving
- specifies whether archiving artifacts is enabledkeepAll
- specifies whether artifacts are archived for all successful builds, otherwise only the most recent
-
publishTMS
Publishes reports to a test management system with given settings as named arguments map.- Parameters:
settings
- the settings map
-
publishTraceAnalysis
public void publishTraceAnalysis()Runs the trace analyses and publishes the generated reports with default settings. -
publishTraceAnalysis
public void publishTraceAnalysis(boolean mergeReports, boolean createReportDir, int timeout, boolean allowMissing, boolean runOnFailed, boolean archiving, boolean keepAll) Runs the trace analyses and publishes the generated reports with all available settings.- Parameters:
mergeReports
- specifies whether to merge analysis job reports,createReportDir
- specifies whether to create a new report directory,timeout
- the timeoutallowMissing
- specifies whether missing reports are allowedrunOnFailed
- specifies whether this publisher even runs on a failed buildarchiving
- specifies whether archiving artifacts is enabledkeepAll
- specifies whether artifacts are archived for all successful builds, otherwise only the most recent
-
publishTraceAnalysis
Runs the trace analyses and publishes the generated reports with given settings as named arguments map.- Parameters:
settings
- the settings map
-
isConfigStarted
public boolean isConfigStarted()Checks whether the currently selected configurations are started.- Returns:
true
if configurations are started,false
otherwise
-