Class StartTSBuilder
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- de.tracetronic.jenkins.plugins.ecutest.tool.AbstractToolBuilder
-
- de.tracetronic.jenkins.plugins.ecutest.tool.StartTSBuilder
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,SimpleBuildStep
public class StartTSBuilder extends AbstractToolBuilder
Builder providing the start up of the Tool-Server.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StartTSBuilder.DescriptorImpl
DescriptorImpl forStartTSBuilder
.-
Nested classes/interfaces inherited from class de.tracetronic.jenkins.plugins.ecutest.tool.AbstractToolBuilder
AbstractToolBuilder.SetComPropertyCallable
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_TCP_PORT
Defines the default port used for TCP communication with the Tool-Server.static int
DEFAULT_TIMEOUT
Defines the default timeout to start up the Tool-Server.-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description StartTSBuilder(String toolName)
Instantiates a newStartTSBuilder
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDefaultTcpPort()
int
getDefaultTimeout()
Gets the default timeout.String
getTcpPort()
String
getToolLibsIni()
boolean
isKeepInstance()
void
performTool(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener)
Performs the tool-specific build step operations.void
setKeepInstance(boolean keepInstance)
void
setTcpPort(String tcpPort)
void
setToolLibsIni(String toolLibsIni)
-
Methods inherited from class de.tracetronic.jenkins.plugins.ecutest.tool.AbstractToolBuilder
configureToolInstallation, getDescriptor, getInstallation, getRequiredMonitorService, getTimeout, getToolId, getToolInstallation, getToolName, isInstallationVerified, perform, setInstallation, setTimeout, setTimeout
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, perform, prebuild
-
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
-
-
-
Field Detail
-
DEFAULT_TIMEOUT
public static final int DEFAULT_TIMEOUT
Defines the default timeout to start up the Tool-Server.- See Also:
- Constant Field Values
-
DEFAULT_TCP_PORT
public static final int DEFAULT_TCP_PORT
Defines the default port used for TCP communication with the Tool-Server.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StartTSBuilder
@DataBoundConstructor public StartTSBuilder(@Nonnull String toolName)
Instantiates a newStartTSBuilder
.- Parameters:
toolName
- the tool name identifying theETInstallation
to be used
-
-
Method Detail
-
getDefaultTimeout
public int getDefaultTimeout()
Description copied from class:AbstractToolBuilder
Gets the default timeout.- Specified by:
getDefaultTimeout
in classAbstractToolBuilder
- Returns:
- the default timeout
-
getDefaultTcpPort
public int getDefaultTcpPort()
-
setToolLibsIni
@DataBoundSetter public void setToolLibsIni(@CheckForNull String toolLibsIni)
-
setTcpPort
@DataBoundSetter public void setTcpPort(@CheckForNull String tcpPort)
-
isKeepInstance
public boolean isKeepInstance()
-
setKeepInstance
@DataBoundSetter public void setKeepInstance(boolean keepInstance)
-
performTool
public void performTool(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException, ETPluginException
Description copied from class:AbstractToolBuilder
Performs the tool-specific build step operations.- Specified by:
performTool
in classAbstractToolBuilder
- Parameters:
run
- the runworkspace
- the workspacelauncher
- the launcherlistener
- the listener- Throws:
InterruptedException
- the interrupted exceptionIOException
- signals that an I/O exception has occurredETPluginException
- in case of tool operation errors
-
-