public class WorkLoad extends Object
| Constructor and Description |
|---|
WorkLoad(String fileName,
String exeConfig,
String dataDir,
String reportDir,
String testSetName,
List<String> testCases,
hudson.FilePath masterWorkspace,
hudson.model.AbstractBuild masterId) |
| Modifier and Type | Method and Description |
|---|---|
static void |
clean(String jobName,
hudson.model.AbstractBuild masterBuild)
Cleans the workload if there is an Interrupted Exeption.
|
String |
getDataDir() |
String |
getExeConfig() |
String |
getFileName() |
hudson.model.AbstractBuild |
getMasterId() |
hudson.FilePath |
getMasterWorkspace() |
String |
getReportDir() |
List<String> |
getTestCases() |
String |
getTestSetName() |
static WorkLoad |
pollWorkload(String jobName)
Pops the workload from the static HashMap.
|
static void |
putWorkLoad(String jobName,
WorkLoad workloadToAdd)
Adds a workload to the static HashMap.
|
public WorkLoad(String fileName, String exeConfig, String dataDir, String reportDir, String testSetName, List<String> testCases, hudson.FilePath masterWorkspace, hudson.model.AbstractBuild masterId)
fileName - tpt file nameexeConfig - tpt execution configurationdataDir - the path to test data dirreportDir - the path to the report dirtestSetName - the name of the test set if giventestCases - the test cases that should be executed by the slavemasterWorkspace - the workspace from master, used for knowing where to copy the resultsmasterId - the current build, used in order to get an unique idpublic String getFileName()
public String getDataDir()
public String getReportDir()
public String getTestSetName()
public String getExeConfig()
public hudson.FilePath getMasterWorkspace()
public hudson.model.AbstractBuild getMasterId()
public static void putWorkLoad(String jobName, WorkLoad workloadToAdd)
jobName - The name of the jenkins job serving as a slave.workloadToAdd - The work package to be executed by the slave jobpublic static WorkLoad pollWorkload(String jobName)
jobName - The name of the jenkins job serving as a slave.public static void clean(String jobName, hudson.model.AbstractBuild masterBuild)
jobName - The name of the jenkins job serving as a slave.masterBuild - the build of the master jobCopyright © 2016–2018 PikeTec GmbH. All rights reserved.