@Extension public static final class GerritServer.DescriptorImpl extends hudson.model.Descriptor<GerritServer>
Constructor and Description |
---|
GerritServer.DescriptorImpl() |
Modifier and Type | Method and Description |
---|---|
hudson.util.ListBoxModel |
doFillDefaultSlaveIdItems(String serverName)
Fill the Gerrit slave dropdown with the list of slaves configured with the selected server.
|
hudson.util.ListBoxModel |
doFillNotificationLevelItems()
Fill the dropdown for notification levels.
|
hudson.util.FormValidation |
doTestConnection(String gerritHostName,
int gerritSshPort,
String gerritProxy,
String gerritUserName,
String gerritAuthKeyFile,
String gerritAuthKeyFilePassword)
Tests if the provided parameters can connect to Gerrit.
|
hudson.util.FormValidation |
doTestRestConnection(String gerritFrontEndUrl,
String gerritHttpUserName,
String gerritHttpPassword)
Tests if the REST API settings can connect to Gerrit.
|
String |
getDisplayName() |
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, 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 String getDisplayName()
getDisplayName
in class hudson.model.Descriptor<GerritServer>
public hudson.util.FormValidation doTestConnection(@QueryParameter(value="gerritHostName") String gerritHostName, @QueryParameter(value="gerritSshPort") int gerritSshPort, @QueryParameter(value="gerritProxy") String gerritProxy, @QueryParameter(value="gerritUserName") String gerritUserName, @QueryParameter(value="gerritAuthKeyFile") String gerritAuthKeyFile, @QueryParameter(value="gerritAuthKeyFilePassword") String gerritAuthKeyFilePassword)
gerritHostName
- the hostnamegerritSshPort
- the ssh-portgerritProxy
- the proxy urlgerritUserName
- the usernamegerritAuthKeyFile
- the private key filegerritAuthKeyFilePassword
- the password for the keyfile or null if there is none.FormValidation.ok()
if can be done,
FormValidation.error(java.lang.String)
otherwise.public hudson.util.FormValidation doTestRestConnection(@QueryParameter(value="gerritFrontEndUrl") String gerritFrontEndUrl, @QueryParameter(value="gerritHttpUserName") String gerritHttpUserName, @QueryParameter(value="gerritHttpPassword") String gerritHttpPassword)
gerritFrontEndUrl
- the urlgerritHttpUserName
- the user namegerritHttpPassword
- the passwordFormValidation.ok()
if it works.public hudson.util.ListBoxModel doFillDefaultSlaveIdItems(@QueryParameter(value="name")@RelativePath(value="../..") String serverName)
serverName
- name of the serverpublic hudson.util.ListBoxModel doFillNotificationLevelItems()
Copyright © 2004-2016. All Rights Reserved.