Package com.piketec.jenkins.plugins.tpt
Class TptPluginSlave
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
com.piketec.jenkins.plugins.tpt.TptPluginSlave
- All Implemented Interfaces:
ExtensionPoint,Describable<Builder>,BuildStep,SimpleBuildStep
Plugin executes a single given TPT test case. Intended to be used in the job started by
TptPluginDistributingJobExecutor.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory -
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
ConstructorsConstructorDescriptionTptPluginSlave(String exePaths) Those arguments are processed and then passed to theTptPluginWorkerJobExecutor. -
Method Summary
Modifier and TypeMethodDescriptionCommon command line opts.voidIt collects the necesary data (tpt exe path, tpt Port, tpt bindingname and tpt expandedTptStartupWaitTime) from the environment.voidsetArguments(String arguments) voidsetTptBindingName(String tptBindingName) voidsetTptPort(String tptPort) voidsetTptStartUpWaitTime(String tptStartUpWaitTime) Methods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuildMethods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Constructor Details
-
TptPluginSlave
Those arguments are processed and then passed to theTptPluginWorkerJobExecutor. This class is used as a wrapper- Parameters:
exePaths- the paths to the Tpt Executables
-
-
Method Details
-
getExePaths
- Returns:
- The list of paths to possible TPT-installations.
-
getArguments
Common command line opts. Delimiter between the options is one or more spaces. Inside doublequotes spaces have no special meaning.- Returns:
- 0 or more options for tpt.
-
setArguments
-
getTptBindingName
- Returns:
- the RMI binding name for TPT
-
setTptBindingName
- Parameters:
tptBindingName- The RMI binding name for TPT
-
getTptPort
- Returns:
- The port of the RMI registry
-
setTptPort
- Parameters:
tptPort- The port of the RMI registry
-
getTptStartUpWaitTime
- Returns:
- The time waited before trying to get the API handle after starting TPT
-
setTptStartUpWaitTime
- Parameters:
tptStartUpWaitTime- The time to wait for TPT to start
-
perform
public void perform(Run<?, ?> run, FilePath workspace, EnvVars env, Launcher launcher, TaskListener listener) throws InterruptedException, IOExceptionIt collects the necesary data (tpt exe path, tpt Port, tpt bindingname and tpt expandedTptStartupWaitTime) from the environment. Then collects the necesary data from the workload (put by the TptPluginMasterJobExecutor). After collecting all the necesary data it creates a newTptPluginWorkerJobExecutorand execute it. This method will be called from Jenkins when a build for a worker job is scheduled. @see retryableJob. The logic is that the retryableJob schedules builds for the worker job and those builds will be executed here.- Specified by:
performin interfaceSimpleBuildStep- Throws:
InterruptedExceptionIOException
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<Builder>- Overrides:
getDescriptorin classBuilder
-