Package com.compuware.jenkins.build
Class CodeCoverageBuilder.CodeCoverageDescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<T>
-
- hudson.tasks.BuildStepDescriptor<hudson.tasks.Builder>
-
- com.compuware.jenkins.build.CodeCoverageBuilder.CodeCoverageDescriptorImpl
-
- All Implemented Interfaces:
hudson.model.Saveable,jenkins.util.io.OnMaster
- Enclosing class:
- CodeCoverageBuilder
@Extension public static final class CodeCoverageBuilder.CodeCoverageDescriptorImpl extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Builder>DescriptorImpl is used to create instances ofCodeCoverageBuilder. It also contains the global configuration options as fields, just like theCodeCoverageBuildercontains the configuration options for a job
-
-
Constructor Summary
Constructors Constructor Description CodeCoverageDescriptorImpl()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)hudson.util.FormValidationdoCheckConnectionId(String connectionId)Validator for the 'Host connection' field.hudson.util.FormValidationdoCheckCredentialsId(String credentialsId)Validator for the 'Login credentials' field.hudson.util.ListBoxModeldoFillConnectionIdItems(jenkins.model.Jenkins context, String connectionId, hudson.model.Item project)Fills in the Host Connection selection box with applicable connections.hudson.util.ListBoxModeldoFillCredentialsIdItems(jenkins.model.Jenkins context, String credentialsId, hudson.model.Item project)Fills in the Login Credentials selection box with applicable connections.StringgetDefaultAnalysisProperties()Get the default value for 'Analysis properties'StringgetDisplayName()booleanisApplicable(Class<? extends hudson.model.AbstractProject> aClass)-
Methods inherited from class hudson.model.Descriptor
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
-
-
-
-
Method Detail
-
isApplicable
public boolean isApplicable(Class<? extends hudson.model.AbstractProject> aClass)
- Specified by:
isApplicablein classhudson.tasks.BuildStepDescriptor<hudson.tasks.Builder>
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayNamein classhudson.model.Descriptor<hudson.tasks.Builder>
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws hudson.model.Descriptor.FormException- Overrides:
configurein classhudson.model.Descriptor<hudson.tasks.Builder>- Throws:
hudson.model.Descriptor.FormException
-
getDefaultAnalysisProperties
public String getDefaultAnalysisProperties()
Get the default value for 'Analysis properties'- Returns:
- the default value for 'Analysis properties'
-
doCheckConnectionId
public hudson.util.FormValidation doCheckConnectionId(@QueryParameter String connectionId)Validator for the 'Host connection' field.- Parameters:
connectionId- unique identifier for the host connection passed from the config.jelly "connectionId" field- Returns:
- validation message
-
doCheckCredentialsId
public hudson.util.FormValidation doCheckCredentialsId(@QueryParameter String credentialsId)Validator for the 'Login credentials' field.- Parameters:
credentialsId- login credentials passed from the config.jelly "credentialsId" field- Returns:
- validation message
-
doFillConnectionIdItems
public hudson.util.ListBoxModel doFillConnectionIdItems(@AncestorInPath jenkins.model.Jenkins context, @QueryParameter String connectionId, @AncestorInPath hudson.model.Item project)Fills in the Host Connection selection box with applicable connections.- Parameters:
context- filter for host connectionsconnectionId- an existing host connection identifier; can be nullproject- the Jenkins project- Returns:
- host connection selections
-
doFillCredentialsIdItems
public hudson.util.ListBoxModel doFillCredentialsIdItems(@AncestorInPath jenkins.model.Jenkins context, @QueryParameter String credentialsId, @AncestorInPath hudson.model.Item project)Fills in the Login Credentials selection box with applicable connections.- Parameters:
context- filter for login credentialscredentialsId- existing login credentials; can be nullproject- the Jenkins project- Returns:
- login credentials selection
-
-