@Symbol(value="totaltestUT")
@Extension
public static final class TotalTestBuilder.DescriptorImpl
extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Builder>
TotalTestRunner
. Used as a singleton.
The class is marked as public so that it can be accessed from views.
See src/main/resources/hudson/plugins/totatest/TotalTestRunner/*.jelly
for the actual HTML fragment for the configuration screen.
Constructor and Description |
---|
DescriptorImpl()
In order to load the persisted global configuration, you have to
call load() in the constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
The method is called when the global configuration page is submitted.
|
hudson.util.FormValidation |
doCheckCcRepo(String value)
Validates the 'ccRepo' field.
|
hudson.util.FormValidation |
doCheckCcSystem(String value)
Validates the 'ccTestId' field.
|
hudson.util.FormValidation |
doCheckCcTestId(String value)
Validates the 'ccTestId' field.
|
hudson.util.FormValidation |
doCheckCredentialsId(String value)
Validates for the 'Login Credential' field
|
hudson.util.FormValidation |
doCheckHlq(String value)
Validates for the 'hlsq' field
|
hudson.util.FormValidation |
doCheckHostPort(String value)
Validates the 'hostPort' text field
|
hudson.util.FormValidation |
doCheckJcl(String value)
Validates for the 'JCL' text field
|
hudson.util.FormValidation |
doCheckProjectFolder(String value)
Validates the 'projectFolder' text field
|
hudson.util.FormValidation |
doCheckTestSuite(String value)
Validates the 'testSuite' text field
|
hudson.util.ListBoxModel |
doFillCcPgmTypeItems(jenkins.model.Jenkins context,
String ccPgmType,
hudson.model.Item project)
Fill in the Code Coverage program types.
|
hudson.util.ListBoxModel |
doFillConnectionIdItems(jenkins.model.Jenkins context,
String connectionId,
hudson.model.Item project)
Fills in the Host Connection selection box with applicable connections.
|
hudson.util.ListBoxModel |
doFillCredentialsIdItems(jenkins.model.Jenkins context,
String credentialsId,
hudson.model.Item project)
Fills in the Login Credential selection box with applicable Jenkins credentials
|
String |
getDisplayName() |
boolean |
isApplicable(Class<? extends hudson.model.AbstractProject> aClass) |
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
public DescriptorImpl()
public hudson.util.FormValidation doCheckHostPort(@QueryParameter String value)
value
- Value passed from the config.jelly "hostPort" fieldFormValidation
containing the validation status.public hudson.util.FormValidation doCheckProjectFolder(@QueryParameter String value)
value
- Value passed from the config.jelly "projectFolder" fieldFormValidation
containing the validation status.public hudson.util.FormValidation doCheckTestSuite(@QueryParameter String value)
value
- Value passed from the config.jelly "testSuite" fieldFormValidation
containing the validation status.public hudson.util.FormValidation doCheckJcl(@QueryParameter String value)
value
- Value passed from the config.jelly "jcl" fieldFormValidation
containing the validation status.public hudson.util.FormValidation doCheckHlq(@QueryParameter String value)
value
- Value passed from the config.jelly "hlq" fieldFormValidation
containing the validation status.public hudson.util.FormValidation doCheckCcRepo(@QueryParameter String value)
value
- Value passed from the config.jelly "ccRepo" fieldFormValidation
containing the validation status.public hudson.util.FormValidation doCheckCcSystem(@QueryParameter String value)
value
- Value passed from the config.jelly "ccRepo" fieldFormValidation
containing the validation status.public hudson.util.FormValidation doCheckCcTestId(@QueryParameter String value)
value
- Value passed from the config.jelly "ccRepo" fieldFormValidation
containing the validation status.public hudson.util.FormValidation doCheckCredentialsId(@QueryParameter String value)
value
- Value passed from the config.jelly "fileExtension" fieldpublic hudson.util.ListBoxModel doFillConnectionIdItems(@AncestorInPath jenkins.model.Jenkins context, @QueryParameter String connectionId, @AncestorInPath hudson.model.Item project)
context
- An instance of context
for the Jenkin's contextconnectionId
- an existing host connection identifier; can be nullproject
- An instance of Item
for the project.public hudson.util.ListBoxModel doFillCcPgmTypeItems(@AncestorInPath jenkins.model.Jenkins context, @QueryParameter String ccPgmType, @AncestorInPath hudson.model.Item project)
context
- An instance of context
for the Jenkin's contextccPgmType
- The type of program to test.project
- An instance of Item
for the project.ListBoxModel
instance contain the Code Coverage program types.public hudson.util.ListBoxModel doFillCredentialsIdItems(@AncestorInPath jenkins.model.Jenkins context, @QueryParameter String credentialsId, @AncestorInPath hudson.model.Item project)
context
- An instance of context
for the Jenkin's contextcredentialsId
- The credendtial id for the user.project
- An instance of Item
for the project.public boolean isApplicable(Class<? extends hudson.model.AbstractProject> aClass)
isApplicable
in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Builder>
public String getDisplayName()
getDisplayName
in class hudson.model.Descriptor<hudson.tasks.Builder>
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws hudson.model.Descriptor.FormException
save()
method must be called. Data is defined in the global.jelly page.configure
in class hudson.model.Descriptor<hudson.tasks.Builder>
req
- Stapler requestformData
- Form dataFormException
- If an error occurred processing configuration.hudson.model.Descriptor.FormException
Copyright © 2016–2023. All rights reserved.