@Extension public class BuildStatusConfig extends GlobalConfiguration
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfExtensionPoint.LegacyInstancesAreScopedToHudsonclazz| Constructor and Description |
|---|
BuildStatusConfig()
Default constructor - loads the configuration
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
Invoked when the global configuration page is submitted
|
FormValidation |
doCheckCredentialsId(Item item,
String value)
Validates the credentialsId
|
ListBoxModel |
doFillCredentialsIdItems(String credentialsId)
Fill the list box in the settings page with valid credentials
|
static BuildStatusConfig |
get()
Convenience method to get the configuration object
|
static <T extends com.cloudbees.plugins.credentials.Credentials> |
getCredentials(Class<T> type,
String credentialsId) |
String |
getCredentialsId()
Get the credentials Id
|
String |
getDisplayName()
Gets human readable name
|
boolean |
getEnableGithub()
Get a flag indicating whether to enable GitHub.
|
boolean |
getEnableInfluxDb()
Get flag determining whether writing to influxdb is enabled
|
boolean |
getEnableStatsd()
Get flag determining whether writing to statsd is enabled
|
String |
getInfluxDbDatabase()
Get the value of influxDbDatabase
|
String |
getInfluxDbRetentionPolicy()
Get the value of influxDbRetentionPolicy
|
String |
getInfluxDbUrl()
Get the value of influxDbUrl
|
String |
getStatsdBucket()
Get the value of statsdBucket
|
String |
getStatsdHost()
Get the value of statsdHost
|
String |
getStatsdMaxSize()
Get the value of statsdMaxSize
|
String |
getStatsdPort()
Get the value of statsdPort
|
void |
setCredentialsId(String credentialsId)
Sets the credentials Id
|
void |
setEnableGithub(boolean enableGithub)
Set whether sending status to github is enabled
|
void |
setEnableInfluxDb(boolean enableInfluxDb)
Set whether writing to influxdb is enabled
|
void |
setEnableStatsd(boolean enableStatsd)
Set whether writing to statsd is enabled
|
void |
setInfluxDbDatabase(String influxDbDatabase)
Set the value of influxDbDatabase
|
void |
setInfluxDbRetentionPolicy(String influxDbRetentionPolicy)
Set the value of influxDbRetentionPolicy
|
void |
setInfluxDbUrl(String influxDbUrl)
Set the value of influxDbUrl
|
void |
setStatsdBucket(String statsdBucket)
Set the value of statsdBucket
|
void |
setStatsdHost(String statsdURL)
Set the value of statsdHost
|
void |
setStatsdMaxSize(String statsdMaxSize)
Set the value of statsdMaxSize
|
void |
setStatsdPort(String statsdPort)
Set the value of statsdPort
|
all, getDescriptor, getGlobalConfigPageaddHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, 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 BuildStatusConfig()
public static BuildStatusConfig get()
public String getDisplayName()
getDisplayName in class Descriptor<GlobalConfiguration>public boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
throws Descriptor.FormException
configure in class GlobalConfigurationreq - Request that represents the form submissionjson - The JSON object that captures the configuration dataDescriptor.FormException - exception if a form field is invalidpublic boolean getEnableGithub()
@DataBoundSetter public void setEnableGithub(boolean enableGithub)
enableGithub - true to enable sending status to githubpublic String getCredentialsId()
@DataBoundSetter public void setCredentialsId(String credentialsId)
credentialsId - the credentials Idpublic boolean getEnableInfluxDb()
@DataBoundSetter public void setEnableInfluxDb(boolean enableInfluxDb)
enableInfluxDb - true to enable writing to influxdbpublic String getInfluxDbUrl()
@DataBoundSetter public void setInfluxDbUrl(String influxDbUrl)
influxDbUrl - new value of influxDbUrlpublic String getInfluxDbDatabase()
@DataBoundSetter public void setInfluxDbDatabase(String influxDbDatabase)
influxDbDatabase - new value of influxDbDatabasepublic String getInfluxDbRetentionPolicy()
@DataBoundSetter public void setInfluxDbRetentionPolicy(String influxDbRetentionPolicy)
influxDbRetentionPolicy - new value of influxDbRetentionPolicypublic boolean getEnableStatsd()
@DataBoundSetter public void setEnableStatsd(boolean enableStatsd)
enableStatsd - true to enable writing to statsdpublic String getStatsdHost()
@DataBoundSetter public void setStatsdHost(String statsdURL)
statsdURL - new value of statsdHostpublic String getStatsdPort()
@DataBoundSetter public void setStatsdPort(String statsdPort)
statsdPort - new value of statsdPortpublic String getStatsdBucket()
@DataBoundSetter public void setStatsdBucket(String statsdBucket)
statsdBucket - new value of statsdBucketpublic String getStatsdMaxSize()
@DataBoundSetter public void setStatsdMaxSize(String statsdMaxSize)
statsdMaxSize - new value of statsdMaxSizepublic ListBoxModel doFillCredentialsIdItems(@QueryParameter String credentialsId)
credentialsId - the current credentials Idpublic FormValidation doCheckCredentialsId(@AncestorInPath Item item, @QueryParameter String value)
item - context for validationvalue - to validateCopyright © 2016–2019. All rights reserved.