@Extension
public static final class CodeCoverageBuilder.CodeCoverageDescriptorImpl
extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Builder>
CodeCoverageBuilder
. It also contains the global configuration
options as fields, just like the CodeCoverageBuilder
contains the configuration options for a jobConstructor and Description |
---|
CodeCoverageDescriptorImpl()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
hudson.util.FormValidation |
doCheckConnectionId(String connectionId)
Validator for the 'Host connection' field.
|
hudson.util.FormValidation |
doCheckCredentialsId(String credentialsId)
Validator for the 'Login credentials' field.
|
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 Credentials selection box with applicable connections.
|
String |
getDefaultAnalysisProperties()
Get the default value for 'Analysis properties'
|
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 CodeCoverageDescriptorImpl()
In order to load the persisted global configuration, you have to call load() in the constructor.
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
configure
in class hudson.model.Descriptor<hudson.tasks.Builder>
hudson.model.Descriptor.FormException
public String getDefaultAnalysisProperties()
public hudson.util.FormValidation doCheckConnectionId(@QueryParameter String connectionId)
connectionId
- unique identifier for the host connection passed from the config.jelly "connectionId" fieldpublic hudson.util.FormValidation doCheckCredentialsId(@QueryParameter String credentialsId)
credentialsId
- login credentials passed from the config.jelly "credentialsId" fieldpublic hudson.util.ListBoxModel doFillConnectionIdItems(@AncestorInPath jenkins.model.Jenkins context, @QueryParameter String connectionId, @AncestorInPath hudson.model.Item project)
context
- filter for host connectionsconnectionId
- an existing host connection identifier; can be nullproject
- the Jenkins projectpublic hudson.util.ListBoxModel doFillCredentialsIdItems(@AncestorInPath jenkins.model.Jenkins context, @QueryParameter String credentialsId, @AncestorInPath hudson.model.Item project)
context
- filter for login credentialscredentialsId
- existing login credentials; can be nullproject
- the Jenkins projectCopyright © 2016–2022. All rights reserved.