Class 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 of CodeCoverageBuilder. It also contains the global configuration options as fields, just like the CodeCoverageBuilder contains the configuration options for a job
    • Nested Class Summary

      • Nested classes/interfaces inherited from class hudson.model.Descriptor

        hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType, hudson.model.Descriptor.Self
    • Field Summary

      • Fields inherited from class hudson.model.Descriptor

        clazz
      • Fields inherited from interface hudson.model.Saveable

        NOOP
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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)  
      • Methods inherited from class hudson.tasks.BuildStepDescriptor

        filter
      • 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
    • Constructor Detail

      • CodeCoverageDescriptorImpl

        public CodeCoverageDescriptorImpl()
        Constructor.

        In order to load the persisted global configuration, you have to call load() in the constructor.

    • Method Detail

      • isApplicable

        public boolean isApplicable​(Class<? extends hudson.model.AbstractProject> aClass)
        Specified by:
        isApplicable in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Builder>
      • getDisplayName

        public String getDisplayName()
        Overrides:
        getDisplayName in class hudson.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:
        configure in class hudson.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 connections
        connectionId - an existing host connection identifier; can be null
        project - 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 credentials
        credentialsId - existing login credentials; can be null
        project - the Jenkins project
        Returns:
        login credentials selection