public class TptPlugin
extends hudson.tasks.Builder
| Modifier and Type | Class and Description |
|---|---|
static class |
TptPlugin.DescriptorImpl
The descriptor of TptPlugin
|
| Constructor and Description |
|---|
TptPlugin(String exe,
String exePaths,
String arguments,
boolean isTptMaster,
String slaveJob,
String slaveJobCount,
String slaveJobTries,
String tptBindingName,
String tptPort,
ArrayList<JenkinsConfiguration> executionConfiguration,
String tptStartUpWaitTime,
Boolean enableJunit,
String jUnitreport,
com.piketec.jenkins.plugins.tpt.TptLog.LogLevel jUnitLogLevel)
All the parameter are processed and then they are passed to TptPluginSingleJobExecutor or to
TptPluginMasterJobExecutor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getArguments()
Common command line opts.
|
TptPlugin.DescriptorImpl |
getDescriptor() |
List<JenkinsConfiguration> |
getExecutionConfiguration() |
String |
getExePaths() |
boolean |
getIsTptMaster() |
com.piketec.jenkins.plugins.tpt.TptLog.LogLevel |
getJUnitLogLevel()
The severity level of TPT log messages that will be written to failed JUnit tests.
|
String |
getJUnitreport()
Report dir (optional).
|
String |
getSlaveJob() |
String |
getSlaveJobCount() |
String |
getSlaveJobTries() |
String |
getTptBindingName() |
String |
getTptPort() |
String |
getTptStartUpWaitTime() |
boolean |
isEnableJunit() |
boolean |
isIsTptMaster() |
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
boolean |
performAsMaster(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
hudson.EnvVars environment,
ArrayList<JenkinsConfiguration> normalizedConfigs)
Get the required data to create a TptPluginMasterJobExecutor and excecutes it.
|
boolean |
performWithoutSlaves(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
hudson.EnvVars environment,
ArrayList<JenkinsConfiguration> normalizedConfigs)
Get the required data to create a TptPluginSingleJobExecutor and excecutes it.
|
protected Object |
readResolve()
This method is used to persist the data format when upgrading the plugin.
|
@DataBoundConstructor public TptPlugin(String exe, String exePaths, String arguments, boolean isTptMaster, String slaveJob, String slaveJobCount, String slaveJobTries, String tptBindingName, String tptPort, ArrayList<JenkinsConfiguration> executionConfiguration, String tptStartUpWaitTime, Boolean enableJunit, String jUnitreport, com.piketec.jenkins.plugins.tpt.TptLog.LogLevel jUnitLogLevel)
exe - deprecatedexePaths - paths to tpt executables separated by a comma or a semicolonarguments - the commandline arguments given in the descriptorisTptMaster - to know if there will be distributed builds or a singleJobslaveJob - the name of the slave job, used for putting the workload to the right slaveslaveJobCount - the number of slaveJobs that will be executedslaveJobTries - used for the retryablejobtptBindingName - the binding name used to connect to the TptApi (for the registry)tptPort - the port for binding to the TptApiexecutionConfiguration - all the jenkins configurations given in the descriptor, used to get the
Files,Execution Configuration, test Set, testDataDir, reportDir,etctptStartUpWaitTime - the time it should wait before start tptenableJunit - to know if is necessary to generate the jUnit reportjUnitreport - path to where the jUnit report will generatedjUnitLogLevel - The sverity of log messages that will be written ti the JUnit xml fileprotected Object readResolve()
public String getExePaths()
public boolean getIsTptMaster()
public boolean isIsTptMaster()
public String getSlaveJob()
public String getSlaveJobCount()
public String getSlaveJobTries()
public String getTptBindingName()
public String getTptPort()
public String getArguments()
public String getTptStartUpWaitTime()
public List<JenkinsConfiguration> getExecutionConfiguration()
public boolean isEnableJunit()
public String getJUnitreport()
null.public com.piketec.jenkins.plugins.tpt.TptLog.LogLevel getJUnitLogLevel()
public boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws InterruptedException,
IOException
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.BuildStepCompatibilityLayerInterruptedExceptionIOExceptionpublic boolean performWithoutSlaves(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
hudson.EnvVars environment,
ArrayList<JenkinsConfiguration> normalizedConfigs)
build - The current Jenkins buildlauncher - The launcherlistener - The listenerenvironment - The map of envrionment varibales and their valuenormalizedConfigs - The configs with already replaced $-variablespublic boolean performAsMaster(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
hudson.EnvVars environment,
ArrayList<JenkinsConfiguration> normalizedConfigs)
build - The current Jenkins buildlauncher - The launcherlistener - The listenerenvironment - The map of envrionment varibales and their valuenormalizedConfigs - The configs with already replaced $-variablespublic TptPlugin.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>getDescriptor in class hudson.tasks.BuilderCopyright © 2016–2018 PikeTec GmbH. All rights reserved.