@Extension(ordinal=200.0) @Symbol(value="location") public class JenkinsLocationConfiguration extends GlobalConfiguration implements PersistentDescriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
static boolean |
DISABLE_URL_VALIDATION
If disabled, the application will no longer check for URL validity in the configuration page.
|
static int |
ORDINAL |
clazz
Constructor and Description |
---|
JenkinsLocationConfiguration() |
Modifier and Type | Method and Description |
---|---|
FormValidation |
doCheckAdminAddress(String value) |
FormValidation |
doCheckUrl(String value)
Checks the URL in
global.jelly |
static JenkinsLocationConfiguration |
get() |
String |
getAdminAddress()
Gets the service administrator e-mail address.
|
static JenkinsLocationConfiguration |
getOrDie()
Gets local configuration.
|
String |
getUrl() |
void |
load()
Loads the data from the disk into this object.
|
void |
setAdminAddress(String adminAddress)
Sets the e-mail address of Jenkins administrator.
|
void |
setUrl(String jenkinsUrl) |
all, configure, getDescriptor, getGlobalConfigPage
addHelpFileRedirect, bindJSON, 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, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public static boolean DISABLE_URL_VALIDATION
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public static final int ORDINAL
@NonNull public static JenkinsLocationConfiguration get()
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @NonNull public static JenkinsLocationConfiguration getOrDie()
get()
public void load()
Descriptor
The constructor of the derived class must call this method. (If we do that in the base class, the derived class won't get a chance to set default values.)
load
in interface PersistentDescriptor
load
in class Descriptor<GlobalConfiguration>
@NonNull public String getAdminAddress()
public void setAdminAddress(@CheckForNull String adminAddress)
adminAddress
- Admin address. Use null to reset the value to default.@CheckForNull public String getUrl()
public void setUrl(@CheckForNull String jenkinsUrl)
public FormValidation doCheckUrl(@QueryParameter String value)
global.jelly
public FormValidation doCheckAdminAddress(@QueryParameter String value)
Copyright © 2004–2022. All rights reserved.