Class ETInstance
- java.lang.Object
-
- de.tracetronic.jenkins.plugins.ecutest.tool.pipeline.ETInstance
-
- All Implemented Interfaces:
Serializable
public class ETInstance extends Object implements Serializable
Class holding ecu.test installation specific settings in order to start and stop instances.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ETInstance(ETInstallation installation)
Instantiates a newETInstance
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ETInstallation
getInstallation()
boolean
isConfigStarted()
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
publishTraceAnalysis()
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
publishUNIT()
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
start(String workspaceDir, String settingsDir)
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
start(Map<String,Object> settings)
Starts ecu.test with given settings as named arguments map.void
startTS()
Starts Tool-Server with default settings.void
startTS(String toolLibsIniPath, int tcpPort, int timeout, boolean keepInstance)
Starts Tool-Server with all available settings.void
startTS(Map<String,Object> settings)
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
stop(Map<String,Object> settings)
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
stopTS(Map<String,Object> settings)
Stops Tool-Server with given settings as named arguments map.
-
-
-
Constructor Detail
-
ETInstance
public ETInstance(@Nonnull ETInstallation installation)
Instantiates a newETInstance
.- Parameters:
installation
- the ecu.test installation
-
-
Method Detail
-
getInstallation
@Nonnull public ETInstallation 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
public void start(String workspaceDir, String settingsDir)
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
public void start(Map<String,Object> settings)
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
public void stop(Map<String,Object> settings)
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
public void startTS(String toolLibsIniPath, int tcpPort, int timeout, boolean keepInstance)
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
public void startTS(Map<String,Object> settings)
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
public void stopTS(Map<String,Object> settings)
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
public void publishUNIT(Map<String,Object> settings)
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
public void publishGenerators(Map<String,Object> settings)
Publishes generator reports with given settings as named arguments map.- Parameters:
settings
- the settings map
-
publishTMS
public void publishTMS(String credentialsId)
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
public void publishTMS(Map<String,Object> settings)
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
public void publishTraceAnalysis(Map<String,Object> settings)
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
-
-