@Extension
public static final class DevTestPluginConfiguration.DevTestPluginDescriptor
extends hudson.model.JobPropertyDescriptor
Constructor and Description |
---|
DevTestPluginDescriptor()
Constructor.
|
DevTestPluginDescriptor(String host,
String port)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
hudson.util.ListBoxModel |
doFillTokenCredentialIdItems()
Method used to fill dropdown with credential tokens.
|
hudson.util.FormValidation |
doTestConnection(String host,
String port,
String tokenCredentialId,
boolean secured)
Test connection to DevTest Registry.
|
String |
getDisplayName()
Method used for setting name of the component in Jenkins GUI.
|
String |
getHost() |
hudson.util.Secret |
getPassword() |
String |
getPort() |
String |
getTokenCredentialId() |
String |
getUsername() |
boolean |
isSecured() |
void |
setHost(String host) |
void |
setPassword(hudson.util.Secret password) |
void |
setPort(String port) |
void |
setTokenCredentialId(String tokenCredentialId) |
void |
setUsername(String username) |
all, getPropertyDescriptors, isApplicable, newInstance
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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws hudson.model.Descriptor.FormException
configure
in class hudson.model.Descriptor<hudson.model.JobProperty<?>>
hudson.model.Descriptor.FormException
@POST public hudson.util.FormValidation doTestConnection(@QueryParameter(value="host") String host, @QueryParameter(value="port") String port, @QueryParameter(value="tokenCredentialId") String tokenCredentialId, @QueryParameter(value="secured") boolean secured)
host
- hostport
- porttokenCredentialId
- tokenCredentialIdsecured
- if https should be usedpublic String getDisplayName()
getDisplayName
in class hudson.model.Descriptor<hudson.model.JobProperty<?>>
public String getHost()
public void setHost(String host)
public String getPort()
public void setPort(String port)
public String getUsername()
public void setUsername(String username)
public hudson.util.Secret getPassword()
public void setPassword(hudson.util.Secret password)
public String getTokenCredentialId()
public void setTokenCredentialId(String tokenCredentialId)
public boolean isSecured()
public hudson.util.ListBoxModel doFillTokenCredentialIdItems()
Copyright © 2016–2022 CA Technologies. All rights reserved.