Class HALMTestReporterStep.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<org.jenkinsci.plugins.workflow.steps.Step>
-
- org.jenkinsci.plugins.workflow.steps.StepDescriptor
-
- com.perforce.halm.jenkins.pipeline.HALMTestReporterStep.DescriptorImpl
-
- Enclosing class:
- HALMTestReporterStep
@Extension public static class HALMTestReporterStep.DescriptorImpl extends org.jenkinsci.plugins.workflow.steps.StepDescriptor
-
-
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 DescriptorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormValidation
doCheckAutomationSuiteID(String automationSuiteID)
Validates the input to the automationSuite field.FormValidation
doCheckHalmConnectionID(String halmConnectionID)
Checks the entered connection ID.FormValidation
doCheckProjectID(String projectID)
Validates the input to the projectID field.ListBoxModel
doFillAutomationSuiteIDItems(String halmConnectionID, String projectID)
Populates the Automation Suite dropdown based on the selected connection and project.ListBoxModel
doFillHalmConnectionIDItems()
Populates the 'credentialType' dropdown with appropriate values.ListBoxModel
doFillProjectIDItems(String halmConnectionID)
Populates the 'projectID' dropdown based on the selection of the connectionID dropdown.ListBoxModel
doFillTestFileFormatItems()
Populates the Test File Format dropdown.ListBoxModel
doFillTestRunSetIDItems(String halmConnectionID, String projectID)
Populates the Test Run Set dropdown.String
getDisplayName()
String
getFunctionName()
Set<? extends Class<?>>
getRequiredContext()
-
Methods inherited from class org.jenkinsci.plugins.workflow.steps.StepDescriptor
all, allMeta, argumentsToString, byFunctionName, checkContextAvailability, defineArguments, getMetaStepArgumentType, getProvidedContext, isAdvanced, isMetaStep, metaStepsOf, newInstance, takesImplicitBlockArgument, uninstantiate
-
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
-
getFunctionName
public String getFunctionName()
- Specified by:
getFunctionName
in classorg.jenkinsci.plugins.workflow.steps.StepDescriptor
-
getDisplayName
@NonNull public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<org.jenkinsci.plugins.workflow.steps.Step>
-
getRequiredContext
public Set<? extends Class<?>> getRequiredContext()
- Specified by:
getRequiredContext
in classorg.jenkinsci.plugins.workflow.steps.StepDescriptor
-
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 testRunSet dropdown
-
-