@Extension
public static final class PublishTest.PublishTestImpl
extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
PublishTest
. Used as a singleton.
The class is marked as public so that it can be accessed from views.
See src/main/resources/com/ibm/devops/dra/PublishTest/*.jelly for the actual HTML fragment for the configuration screen.
Constructor and Description |
---|
PublishTestImpl()
In order to load the persisted global configuration, you have to
call load() in the constructor.
|
Modifier and Type | Method and Description |
---|---|
hudson.model.AutoCompletionCandidates |
doAutoCompleteBuildJobName(String value)
Autocompletion for build job name field
|
hudson.util.FormValidation |
doCheckApplicationName(String value)
Performs on-the-fly validation of the form field 'credentialId'.
|
hudson.util.FormValidation |
doCheckEnvironmentName(String value) |
hudson.util.FormValidation |
doCheckPolicyName(String value) |
hudson.util.FormValidation |
doCheckToolchainName(String value) |
hudson.util.ListBoxModel |
doFillAdditionalLifecycleStageItems(hudson.model.ItemGroup context,
String toolchainName,
String credentialsId,
String selection) |
hudson.util.ListBoxModel |
doFillCredentialsIdItems(hudson.model.ItemGroup context,
String target)
This method is called to populate the credentials list on the Jenkins config page.
|
hudson.util.ListBoxModel |
doFillLifecycleStageItems(hudson.model.ItemGroup context,
String toolchainName,
String credentialsId,
String selection) |
hudson.util.ListBoxModel |
doFillPolicyNameItems(hudson.model.ItemGroup context,
String toolchainName,
String credentialsId)
This method is called to populate the policy list on the Jenkins config page.
|
hudson.util.FormValidation |
doTestConnection(hudson.model.ItemGroup context,
String credentialsId) |
hudson.util.ListBoxModel |
fillTestType(String credentialsId,
String toolchainId,
hudson.model.ItemGroup context)
fill the dropdown list of rule type
|
String |
getDisplayName()
Required Method
|
boolean |
isApplicable(Class<? extends hudson.model.AbstractProject> aClass)
Required Method
This is used to determine if this build step is applicable for your chosen project type.
|
boolean |
isDebugMode() |
addHelpFileRedirect, 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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
public PublishTestImpl()
public hudson.util.FormValidation doCheckApplicationName(@QueryParameter String value) throws IOException, javax.servlet.ServletException
value
- This parameter receives the value that the user has typed.
Note that returning FormValidation.error(String)
does not
prevent the form from being saved. It just means that a message
will be displayed to the user.
IOException
javax.servlet.ServletException
public hudson.util.FormValidation doCheckToolchainName(@QueryParameter String value) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
public hudson.util.FormValidation doCheckEnvironmentName(@QueryParameter String value) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
public hudson.util.FormValidation doCheckPolicyName(@QueryParameter String value)
public hudson.util.FormValidation doTestConnection(@AncestorInPath hudson.model.ItemGroup context, @QueryParameter(value="credentialsId") String credentialsId)
public hudson.model.AutoCompletionCandidates doAutoCompleteBuildJobName(@QueryParameter String value)
value
- - user input for the build job name fieldpublic hudson.util.ListBoxModel doFillCredentialsIdItems(@AncestorInPath hudson.model.ItemGroup context, @QueryParameter(value="target") String target)
public hudson.util.ListBoxModel doFillPolicyNameItems(@AncestorInPath hudson.model.ItemGroup context, @RelativePath(value="..") @QueryParameter String toolchainName, @RelativePath(value="..") @QueryParameter String credentialsId)
context
- credentialsId
- public boolean isApplicable(Class<? extends hudson.model.AbstractProject> aClass)
isApplicable
in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
aClass
- The current projectpublic hudson.util.ListBoxModel doFillLifecycleStageItems(@AncestorInPath hudson.model.ItemGroup context, @QueryParameter String toolchainName, @QueryParameter String credentialsId, @QueryParameter(value="lifecycleStage") String selection)
public hudson.util.ListBoxModel doFillAdditionalLifecycleStageItems(@AncestorInPath hudson.model.ItemGroup context, @RelativePath(value="..") @QueryParameter String toolchainName, @RelativePath(value="..") @QueryParameter String credentialsId, @QueryParameter(value="additionalLifecycleStage") String selection)
public hudson.util.ListBoxModel fillTestType(String credentialsId, String toolchainId, hudson.model.ItemGroup context)
public String getDisplayName()
getDisplayName
in class hudson.model.Descriptor<hudson.tasks.Publisher>
public boolean isDebugMode()
Copyright © 2016–2020. All rights reserved.