Package com.perforce.halm.jenkins
Class HALMTestReporterDescriptor
- java.lang.Object
-
- hudson.model.Descriptor<T>
-
- hudson.tasks.BuildStepDescriptor<Publisher>
-
- com.perforce.halm.jenkins.HALMTestReporterDescriptor
-
@Extension public class HALMTestReporterDescriptor extends BuildStepDescriptor<Publisher>
Runs validation and dynamic content on the HALMTestReporter/config.jelly
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description HALMTestReporterDescriptor()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormValidationdoCheckAutomationSuiteID(String automationSuiteID)Validates the input to the automationSuite field.FormValidationdoCheckHalmConnectionID(String halmConnectionID)Checks the entered connection ID.FormValidationdoCheckProjectID(String projectID)Validates the input to the projectID field.ListBoxModeldoFillAutomationSuiteIDItems(String halmConnectionID, String projectID)Populates the Automation Suite dropdown based on the selected connection and project.ListBoxModeldoFillHalmConnectionIDItems()Populates the 'credentialType' dropdown with appropriate values.ListBoxModeldoFillProjectIDItems(String halmConnectionID)Populates the 'projectID' dropdown based on the selection of the connectionID dropdown.ListBoxModeldoFillTestFileFormatItems()Populates the Test File Format dropdown.ListBoxModeldoFillTestRunSetIDItems(String halmConnectionID, String projectID)Populates the Test Run Set dropdown.@NotNull StringgetDisplayName()booleanisApplicable(Class<? extends AbstractProject> jobType)-
Methods inherited from class hudson.tasks.BuildStepDescriptor
filter
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, 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 AbstractProject> jobType)
- Specified by:
isApplicablein classBuildStepDescriptor<Publisher>
-
getDisplayName
@NotNull public @NotNull String getDisplayName()
- Overrides:
getDisplayNamein classDescriptor<Publisher>
-
doFillHalmConnectionIDItems
public ListBoxModel doFillHalmConnectionIDItems()
Populates the 'credentialType' dropdown with appropriate values.- Returns:
- Credential Type dropdown list values.
-
doCheckHalmConnectionID
@POST public FormValidation doCheckHalmConnectionID(@QueryParameter("value") String halmConnectionID)
Checks the entered connection ID.- Parameters:
halmConnectionID- - the currently selected connection ID.- Returns:
- error if the connection is invalid (can't connect).
-
doFillProjectIDItems
public ListBoxModel doFillProjectIDItems(@QueryParameter("halmConnectionID") String halmConnectionID)
Populates the 'projectID' dropdown based on the selection of the connectionID dropdown.- Parameters:
halmConnectionID- Currently selected halmConnectionID- Returns:
- Populated list of entries for the projectID dropdown.
-
doCheckProjectID
@POST public FormValidation doCheckProjectID(@QueryParameter("value") String projectID)
Validates the input to the projectID field.- Parameters:
projectID- - The current value of the projectID field.- Returns:
- OK unless the item is blank (projectID cannot be blank).
-
doFillAutomationSuiteIDItems
public ListBoxModel doFillAutomationSuiteIDItems(@QueryParameter("halmConnectionID") String halmConnectionID, @QueryParameter("projectID") String projectID)
Populates the Automation Suite dropdown based on the selected connection and project.- Parameters:
halmConnectionID- Currently selected HALM Connection UUIDprojectID- Currently selected HALM Project UUID- Returns:
- Populated list of entries for the automationSuiteName dropdown
-
doCheckAutomationSuiteID
@POST public FormValidation doCheckAutomationSuiteID(@QueryParameter("value") String automationSuiteID)
Validates the input to the automationSuite field.- Parameters:
automationSuiteID- - The current value of the automationSuite field.- Returns:
- OK unless the item is blank (automationSuite cannot be blank).
-
doFillTestFileFormatItems
public ListBoxModel doFillTestFileFormatItems()
Populates the Test File Format dropdown.- Returns:
- Populated list of entries for the testFileFormat dropdown.
-
doFillTestRunSetIDItems
public ListBoxModel doFillTestRunSetIDItems(@QueryParameter("halmConnectionID") String halmConnectionID, @QueryParameter("projectID") String projectID)
Populates the Test Run Set dropdown.- Parameters:
halmConnectionID- Currently selected HALM Connection UUIDprojectID- Currently selected HALM Project UUID- Returns:
- Populated list of entries for the automationSuiteName dropdown
-
-