@Extension
public static final class PublishSQ.PublishSQImpl
extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
PublishSQ
. 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 |
---|
PublishSQImpl()
In order to load the persisted global configuration, you have to
call load() in the constructor.
|
Modifier and Type | Method and Description |
---|---|
hudson.util.FormValidation |
doCheckApplicationName(String value) |
hudson.util.FormValidation |
doCheckSQAuthToken(String value) |
hudson.util.FormValidation |
doCheckSQHostName(String value) |
hudson.util.FormValidation |
doCheckSQProjectKey(String value) |
hudson.util.FormValidation |
doCheckToolchainName(String value)
Performs on-the-fly validation of the form field 'credentialId'.
|
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.FormValidation |
doTestConnection(hudson.model.ItemGroup context,
String credentialsId) |
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 PublishSQImpl()
public hudson.util.FormValidation doCheckToolchainName(@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 doCheckApplicationName(@QueryParameter String value) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
public hudson.util.FormValidation doCheckSQHostName(@QueryParameter String value) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
public hudson.util.FormValidation doCheckSQAuthToken(@QueryParameter String value) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
public hudson.util.FormValidation doCheckSQProjectKey(@QueryParameter String value) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
public hudson.util.FormValidation doTestConnection(@AncestorInPath hudson.model.ItemGroup context, @QueryParameter(value="credentialsId") String credentialsId)
public hudson.util.ListBoxModel doFillCredentialsIdItems(@AncestorInPath hudson.model.ItemGroup context, @QueryParameter(value="target") String target)
public boolean isApplicable(Class<? extends hudson.model.AbstractProject> aClass)
isApplicable
in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
aClass
- The current projectpublic String getDisplayName()
getDisplayName
in class hudson.model.Descriptor<hudson.tasks.Publisher>
public boolean isDebugMode()
Copyright © 2016–2020. All rights reserved.