public class TotalTestBuilder extends AbstractTotalTestBuilderMigration implements jenkins.tasks.SimpleBuildStep
Builder.
When the user configures the project and enables this builder,
Descriptor.newInstance(StaplerRequest) is invoked
and a new TotalTestRunner is created. The created
instance is persisted to the project configuration XML by using
XStream, so this allows you to use instance fields to remember
remember the configuration.
When a build is performed, the perform(hudson.model.Run<?, ?>, hudson.FilePath, hudson.Launcher, hudson.model.TaskListener) method will be invoked.
| Modifier and Type | Class and Description |
|---|---|
static class |
TotalTestBuilder.DescriptorImpl
Descriptor for
TotalTestRunner. |
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactoryconnectionId, hostPort, isMigrated| Constructor and Description |
|---|
TotalTestBuilder(String connectionId,
String credentialsId,
String projectFolder,
String testSuite,
String jcl)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getCcDB2()
Returns whether Code Coverage main program is DB2(IKJEFT01).
|
String |
getCcPgmType()
Returns the Code Coverage main program type.
|
String |
getCcRepo()
Returns the name of the Code Coverage repository.
|
String |
getCcSystem()
Returns the Code Coverage system.
|
String |
getCcTestId()
Returns the Code Coverage test id.
|
String |
getConnectionId()
Gets the unique identifier of the 'Host connection'.
|
String |
getCredentialsId()
Returns the credential id of the user.
|
TotalTestBuilder.DescriptorImpl |
getDescriptor() |
String |
getHlq()
Returns the dataset high level qualifier
|
String |
getJcl()
Returns the name of the JCL file to use.
|
String |
getProjectFolder()
Returns the folder name containing the Total Test project.
|
String |
getTestSuite()
Returns the name of the test scenario or test suite to
run.
|
boolean |
isCcClearStats()
Returns whether statistics should be cleared before the test
|
boolean |
isDeleteTemp()
Returns whether temporary file should be deleted.
|
boolean |
isRecursive()
Returns whether recursively checking for Unit Test projects
|
boolean |
isUseStubs()
Returns whether stubs are to be used.
|
void |
perform(hudson.model.Run<?,?> build,
hudson.FilePath workspaceFilePath,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
void |
setCcClearStats(boolean ccClearStats)
Sets whether statistics should be clear before the test.
|
void |
setCcDB2(boolean ccDB2)
Set if the main program is DB2.
|
void |
setCcPgmType(String ccType)
Sets the Code Coverage main program type.
|
void |
setCcRepo(String ccRepo)
Sets the Code Coverage repository dataset name.
|
void |
setCcSystem(String ccSystem)
Sets the Code Coverage system.
|
void |
setCcTestId(String ccTestId)
Sets the Code Coverage test id.
|
void |
setDeleteTemp(boolean deleteTemp)
Sets whether temporary file should be deleted.
|
void |
setHlq(String hlq)
Sets the dataset high level qualifier,
|
void |
setRecursive(boolean recursive)
Sets whether should recursively check for Unit Test projects
|
void |
setUseStubs(boolean useStubs)
Sets if stubs are being used.
|
void |
validateParameters(hudson.Launcher launcher,
hudson.model.TaskListener listener,
hudson.model.Item project)
Validates the configuration parameters.
|
getHostPort, isMigrated, jobLoaded, migrateConnectionInfo, readResolve, setHostPortgetProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild@DataBoundConstructor public TotalTestBuilder(String connectionId, String credentialsId, String projectFolder, String testSuite, String jcl)
connectionId - The connection id for the selected connectioncredentialsId - The user's credential id.projectFolder - The name of the folder containing the Total Test project.testSuite - The name of the test scenario or test suite to run.jcl - The name of the JCL file to use.public String getConnectionId()
String value of connectionIdpublic String getCredentialsId()
public String getProjectFolder()
public String getTestSuite()
The test scenario or test suite must be in the specified project.
public String getJcl()
The JCL file must be in the specified project.
@DataBoundSetter public void setCcRepo(String ccRepo)
ccRepo - The Code Coverage repository name.public String getCcRepo()
@DataBoundSetter public void setCcSystem(String ccSystem)
ccSystem - The Code Coverage system.public String getCcSystem()
@DataBoundSetter public void setCcTestId(String ccTestId)
ccTestId - The Code Coverage test id.public String getCcTestId()
@DataBoundSetter public void setCcDB2(boolean ccDB2)
This method is only here to support version 1.7 and below when ccDB2 was a checkbox.
ccDB2 - true if Code Coverage is for a DB2 program, otherwise falsepublic boolean getCcDB2()
true indicates program is DB2, otherwise falsepublic String getCcPgmType()
@DataBoundSetter public void setCcPgmType(String ccType)
ccType - The Code Coverage main program type. Should be 'DB2', 'IMS", or 'TOTALTEST'.@DataBoundSetter public void setCcClearStats(boolean ccClearStats)
ccClearStats - true if the statistics should be cleared before test, otherwise falsepublic boolean isCcClearStats()
true indicates stubs should be used, otherwise false@DataBoundSetter public void setUseStubs(boolean useStubs)
useStubs - true if stubs are to be used, otherwise falsepublic boolean isUseStubs()
true indicates stubs should be used, otherwise false@DataBoundSetter public void setDeleteTemp(boolean deleteTemp)
deleteTemp - true if temporary files should be deleted, otherwise falsepublic boolean isDeleteTemp()
true indicates temporary files should be deleted.@DataBoundSetter public void setHlq(String hlq)
hlq - High level qualifier for allocating datasets. Can be nullpublic String getHlq()
null will be
returned if no high level qualifier was specified.@DataBoundSetter public void setRecursive(boolean recursive)
recursive - true if should recursively check for Unit Test, otherwise falsepublic boolean isRecursive()
true indicates temporary files should be deleted.public void perform(hudson.model.Run<?,?> build,
hudson.FilePath workspaceFilePath,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
throws hudson.AbortException
perform in interface jenkins.tasks.SimpleBuildStephudson.AbortExceptionpublic TotalTestBuilder.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>getDescriptor in class hudson.tasks.Builderpublic void validateParameters(hudson.Launcher launcher,
hudson.model.TaskListener listener,
hudson.model.Item project)
launcher - An instance of Launcher for launching the plugin.listener - An instance of TaskListener for the build listener.project - An instance of Item for the Jenkins project.Copyright © 2016–2025. All rights reserved.