@Extension
public class CpwrGlobalConfiguration
extends jenkins.model.GlobalConfiguration
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
m_needsSaving |
| Constructor and Description |
|---|
CpwrGlobalConfiguration()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addHostConnection(HostConnection connection)
Adds the given host connection to the list of host connections.
|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json) |
hudson.util.ListBoxModel |
doFillCodePageItems()
Fills in the Code page selection box with code pages.
|
hudson.util.ListBoxModel |
doFillProtocolItems()
Fills in the encryption protocol selection box with encryption protocols.
|
static CpwrGlobalConfiguration |
get()
Returns the singleton instance.
|
HostConnection |
getHostConnection(String connectionId)
Returns a host connection for the given connection identifier.
|
HostConnection |
getHostConnection(String hostPort,
String codePage)
Returns a host connection for a given host:port and code page, if one exists.
|
HostConnection[] |
getHostConnections()
Returns the list of host connections.
|
com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials |
getLoginInformation(hudson.model.Item project,
String credentialsId)
Retrieves login information given a credentials identifier.
|
String |
getTopazCLILocation(hudson.Launcher launcher)
Returns the Topaz Workbench CLI location based on node.
|
String |
getTopazCLILocationLinux()
Returns the value of the topazCLILocationLinux field.
|
String |
getTopazCLILocationWindows()
Returns the value of the topazCLILocationLinux.
|
static void |
jobLoaded()
Perform initialization after all jobs have been loaded.
|
boolean |
needsSaving()
Return TRUE if the configuration needs saving.
|
void |
setHostConnections(HostConnection... connections)
Sets the list of host connections.
|
void |
setTopazCLILocationLinux(String location)
Sets the Topaz CLI installation location for Linux systems.
|
void |
setTopazCLILocationWindows(String location)
Sets the Topaz CLI installation location for Windows systems.
|
all, getDescriptor, getGlobalConfigPageaddHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, 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, toMappublic CpwrGlobalConfiguration()
Clients should not call this - use get() instead.
public static CpwrGlobalConfiguration get()
public boolean needsSaving()
@Initializer(after=JOB_LOADED) public static void jobLoaded()
public HostConnection[] getHostConnections()
public HostConnection getHostConnection(String connectionId)
connectionId - a unique connection identifierHostConnection; can be nullpublic void setHostConnections(HostConnection... connections)
connections - one or more host connectionspublic HostConnection getHostConnection(String hostPort, String codePage)
hostPort - the host and port in the form of 'host:port'codePage - the code pagepublic void addHostConnection(HostConnection connection)
connection - connection to addpublic boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
configure in class jenkins.model.GlobalConfigurationpublic hudson.util.ListBoxModel doFillProtocolItems()
public hudson.util.ListBoxModel doFillCodePageItems()
public String getTopazCLILocation(hudson.Launcher launcher)
launcher - launcher for starting a processpublic String getTopazCLILocationWindows()
public String getTopazCLILocationLinux()
public void setTopazCLILocationWindows(String location)
location - the install directorypublic void setTopazCLILocationLinux(String location)
location - the install directorypublic com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials getLoginInformation(hudson.model.Item project,
String credentialsId)
project - the Jenkins projectcredentialsId - the String identifier of the credentials to obtainCopyright © 2016–2020. All rights reserved.