public class JobConfigFile extends Object
This is a flat, yaml configuration that lists all the repositories and other inputs such as the location of credentials.properties.
| Constructor and Description |
|---|
JobConfigFile() |
| Modifier and Type | Method and Description |
|---|---|
String |
getConfigChangeSetBranchName()
Get config change set repository branch name
|
String |
getConfigChangeSetRepository()
Get config change set repository
|
String |
getDeploymentRepository() |
String |
getInfrastructureRepository() |
String |
getJobName() |
String |
getKeyFileLocation() |
Properties |
getProperties()
Get a list of dynamic properties added to the job-config.yaml.
|
String |
getScenarioTestsRepository() |
String |
getTestgridYamlLocation()
The recommended way to load the testgrid.yaml config is via the testgrid.yaml
file located inside testgrid-compatible repositories.
|
String |
getWorkingDir()
The relative paths mentioned in the
JobConfigFile are resolved
wrt to the working directory. |
boolean |
isRelativePaths()
Default is set to true.
|
void |
setConfigChangeSetBranchName(String configChangeSetBranchName)
Set config change set repository branch name
|
void |
setConfigChangeSetRepository(String configChangeSetRepository)
Set config change set repository
|
void |
setDeploymentRepository(String deploymentRepository) |
void |
setInfrastructureRepository(String infrastructureRepository) |
void |
setJobName(String jobName) |
void |
setKeyFileLocation(String keyFileLocation) |
void |
setProperties(Properties properties) |
void |
setRelativePaths(boolean relativePaths)
Set whether the paths in the @
JobConfigFile need to be resolved as
relative paths or not. |
void |
setScenarioTestsRepository(String scenarioTestsRepository) |
void |
setTestgridYamlLocation(String testgridYamlLocation) |
void |
setWorkingDir(String workingDir) |
String |
toString() |
public String getInfrastructureRepository()
public void setInfrastructureRepository(String infrastructureRepository)
public String getDeploymentRepository()
public void setDeploymentRepository(String deploymentRepository)
public String getScenarioTestsRepository()
public void setScenarioTestsRepository(String scenarioTestsRepository)
public String getConfigChangeSetRepository()
public void setConfigChangeSetRepository(String configChangeSetRepository)
configChangeSetRepository - the config chage set repositorypublic String getConfigChangeSetBranchName()
public void setConfigChangeSetBranchName(String configChangeSetBranchName)
configChangeSetBranchName - public String getTestgridYamlLocation()
But, sometimes we need a way to execute testgrid even if the testgrid.yaml is not present in there in a given repository. In that case, we should be able to receive a testgrid.yaml from an external location.
public void setTestgridYamlLocation(String testgridYamlLocation)
public boolean isRelativePaths()
getWorkingDir() set
is good enough for most of the scenarios. Users are expected to pass
the working-dir as a cmd-line argument rather than hard-coding it inside
the job-config.yamlpublic void setRelativePaths(boolean relativePaths)
JobConfigFile need to be resolved as
relative paths or not.relativePaths - enable/disable the relative path based processing.isRelativePaths()public String getWorkingDir()
JobConfigFile are resolved
wrt to the working directory.
It is optional to set this property. If not set, the paths are resolved from the location of the --file input of GenerateTestPlanCommand.
In the Jenkins context, this should be resolved to the workspace of the particular jenkins job's build.
In future, this location will be changed to the workspace of the given test-run inside the TESTGRID_HOME.
public void setWorkingDir(String workingDir)
public String getKeyFileLocation()
public void setKeyFileLocation(String keyFileLocation)
public Properties getProperties()
public void setProperties(Properties properties)
properties - properties to set.getProperties()public String getJobName()
public void setJobName(String jobName)
Copyright © 2019 WSO2. All rights reserved.