Class ETInstallation
java.lang.Object
hudson.model.AbstractDescribableImpl<ToolInstallation>
hudson.tools.ToolInstallation
de.tracetronic.jenkins.plugins.ecutest.tool.installation.AbstractToolInstallation
de.tracetronic.jenkins.plugins.ecutest.tool.installation.ETInstallation
- All Implemented Interfaces:
ExtensionPoint
,Describable<ToolInstallation>
,EnvironmentSpecific<AbstractToolInstallation>
,NodeSpecific<AbstractToolInstallation>
,Serializable
Represents a ecu.test installation specified by name and home directory.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.tools.ToolInstallation
ToolInstallation.ToolConverter
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
ConstructorsConstructorDescriptionETInstallation
(ETInstallation source, String home, List<? extends ToolProperty<?>> properties) Instantiates a newETInstallation
.ETInstallation
(String name, String home, List<? extends ToolProperty<?>> properties) Instantiates a newETInstallation
. -
Method Summary
Modifier and TypeMethodDescriptionforEnvironment
(EnvVars env) forNode
(Node node, TaskListener log) static ETInstallation
Gets the ecu.test installation by name.getComExecutable
(Launcher launcher) Gets the ecu.test COM server executable path on the given target system.getExecutable
(Launcher launcher) Gets the ecu.test executable path on the given target system.Gets the programmatic identifier from tool properties.int
Gets the COM timeout from tool properties.getTSExecutable
(Launcher launcher) Gets the executable path of the Tool-Server on the given target system.static ETInstallation[]
installs()
Gets all ecu.test installations.boolean
Returns whether to register the COM server before each start of ecu.test.Methods inherited from class hudson.tools.ToolInstallation
all, buildEnvVars, getHome, getName, getProperties, readResolve, toString, translate, translate, translateFor, writeReplace
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
ETInstallation
@DataBoundConstructor public ETInstallation(String name, String home, List<? extends ToolProperty<?>> properties) Instantiates a newETInstallation
.- Parameters:
name
- the name of the ecu.test installationhome
- the home directory of the ecu.test installationproperties
- the ecu.test properties
-
ETInstallation
public ETInstallation(ETInstallation source, String home, List<? extends ToolProperty<?>> properties) Instantiates a newETInstallation
.- Parameters:
source
- the source to install the ecu.test installationhome
- the home directory of the ecu.test installationproperties
- the ecu.test properties
-
-
Method Details
-
forEnvironment
-
forNode
public ETInstallation forNode(@Nonnull Node node, TaskListener log) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
getExecutable
Gets the ecu.test executable path on the given target system.- Specified by:
getExecutable
in classAbstractToolInstallation
- Parameters:
launcher
- the launcher- Returns:
- the ecu.test executable
- Throws:
IOException
- signals that an I/O exception has occurredInterruptedException
- if the current thread is interrupted while waiting for the completion
-
getComExecutable
Gets the ecu.test COM server executable path on the given target system.- Parameters:
launcher
- the launcher- Returns:
- the ecu.test COM server executable
- Throws:
IOException
- signals that an I/O exception has occurredInterruptedException
- if the current thread is interrupted while waiting for the completion
-
getTSExecutable
Gets the executable path of the Tool-Server on the given target system. According to ecu.test 6.5 and above the Tool-Server executable is directly located in ecu.test installation path, otherwise in sub directory 'ToolServer'.- Parameters:
launcher
- the launcher- Returns:
- the Tool-Server executable path
- Throws:
IOException
- signals that an I/O exception has occurredInterruptedException
- if the current thread is interrupted while waiting for the completion
-
getProgId
Gets the programmatic identifier from tool properties.- Returns:
- the progId, default progId if tool property does not exist
-
getTimeout
public int getTimeout()Gets the COM timeout from tool properties.- Returns:
- the COM timeout, default timeout if tool property does not exist
-
isRegisterComServer
public boolean isRegisterComServer()Returns whether to register the COM server before each start of ecu.test.- Returns:
true
if option enabled,false
otherwise
-
installs
Gets all ecu.test installations.- Returns:
- all available installations, never
null
-
get
Gets the ecu.test installation by name.- Parameters:
name
- the name- Returns:
- installation by name,
null
if not found
-