@Extension
public class BuildStatusConfig
extends jenkins.model.GlobalConfiguration
Constructor and Description |
---|
BuildStatusConfig()
Default constructor - loads the configuration
|
Modifier and Type | Method and Description |
---|---|
static void |
addCompatibilityAliases()
Adds compatibility aliases to prevent "old data" warnings.
|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
Invoked when the global configuration page is submitted
|
hudson.util.FormValidation |
doCheckCredentialsId(hudson.model.Item item,
String value)
Validates the credentials id.
|
hudson.util.FormValidation |
doCheckHttpCredentialsId(hudson.model.Item item,
String value)
Validates the HTTP credentials id.
|
hudson.util.FormValidation |
doCheckHttpEndpoint(hudson.model.Item item,
String value) |
hudson.util.ListBoxModel |
doFillCredentialsIdItems(String credentialsId)
Fills the list box in the settings page with valid credentials.
|
hudson.util.ListBoxModel |
doFillDbVersionItems()
Fills the list box in the settings page with valid database versions.
|
hudson.util.ListBoxModel |
doFillHttpCredentialsIdItems(String credentialsId)
Fills the list box in the settings page with valid HTTP 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()
Gets the credentials id.
|
Integer |
getDbVersion()
Gets the InfluxDB database version.
|
String |
getDisplayName()
Gets human readable name.
|
boolean |
getEnableGithub()
Gets whether sending status to GitHub is enabled.
|
boolean |
getEnableHttp()
Gets whether sending status to HTTP endpoint is enabled.
|
boolean |
getEnableInfluxDb()
Gets whether writing to InfluxDB is enabled.
|
boolean |
getEnableStatsd()
Gets whether writing to StatsD is enabled.
|
String |
getHttpCredentialsId()
Gets the HTTP credentials id.
|
String |
getHttpEndpoint()
Gets the HTTP endpoint URL.
|
boolean |
getHttpVerifySSL()
Gets whether SSL verify is enabled.
|
boolean |
getIgnoreSendingTestCoverageToInflux()
Gets whether to ignore sending test coverage.
|
boolean |
getIgnoreSendingTestResultsToInflux()
Gets whether to ignore sending test results.
|
String |
getInfluxDbDatabase()
Gets the InfluxDB database.
|
String |
getInfluxDbRetentionPolicy()
Gets the InfluxDB retention policy.
|
String |
getInfluxDbUrl()
Gets the InfluxDB URL.
|
String |
getStatsdBucket()
Gets the StatsD bucket.
|
String |
getStatsdHost()
Gets the StatsD host.
|
String |
getStatsdMaxSize()
Gets the StatsD maximum packet size.
|
String |
getStatsdPort()
Gets the StatsD port.
|
void |
setCredentialsId(String credentialsId)
Sets the credentials id.
|
void |
setDbVersion(Integer dbVersion) |
void |
setDbVersion(String dbVersion)
Sets the InfluxDB database version.
|
void |
setEnableGithub(boolean enableGithub)
Sets whether sending status to GitHub is enabled.
|
void |
setEnableHttp(boolean enableHttp)
Sets whether sending status to HTTP endpoint is enabled.
|
void |
setEnableInfluxDb(boolean enableInfluxDb)
Sets whether writing to InfluxDB is enabled.
|
void |
setEnableStatsd(boolean enableStatsd)
Sets whether writing to StatsD is enabled.
|
void |
setHttpCredentialsId(String httpCredentialsId)
Sets the HTTP credentials id.
|
void |
setHttpEndpoint(String httpEndpoint)
Sets the HTTP endpoint URL.
|
void |
setHttpVerifySSL(boolean httpVerifySSL)
Sets whether SSL verify is enabled.
|
void |
setIgnoreSendingTestCoverageToInflux(boolean ignoreSendingTestCoverageToInflux)
Sets whether to ignore sending test results.
|
void |
setIgnoreSendingTestResultsToInflux(boolean ignoreSendingTestResultsToInflux)
2ets whether to ignore sending test results.
|
void |
setInfluxDbDatabase(String influxDbDatabase)
Sets the InfluxDB database.
|
void |
setInfluxDbRetentionPolicy(String influxDbRetentionPolicy)
Sets the InfluxDB retention policy.
|
void |
setInfluxDbUrl(String influxDbUrl)
Sets the InfluxDB URL.
|
void |
setStatsdBucket(String statsdBucket)
Sets the StatsD bucket.
|
void |
setStatsdHost(String statsdHost)
Sets the StatsD host.
|
void |
setStatsdMaxSize(String statsdMaxSize)
Sets the StatsD maximum packet size.
|
void |
setStatsdPort(String statsdPort)
Sets the StatsD port.
|
all, getDescriptor, getGlobalConfigPage
addHelpFileRedirect, 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, toMap
public BuildStatusConfig()
@Initializer(before=PLUGINS_STARTED) public static void addCompatibilityAliases()
public static BuildStatusConfig get()
public String getDisplayName()
getDisplayName
in class hudson.model.Descriptor<jenkins.model.GlobalConfiguration>
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws hudson.model.Descriptor.FormException
configure
in class jenkins.model.GlobalConfiguration
req
- Request that represents the form submissionjson
- The JSON object that captures the configuration datahudson.model.Descriptor.FormException
- exception if a form field is invalidpublic boolean getEnableGithub()
@DataBoundSetter public void setEnableGithub(boolean enableGithub)
enableGithub
- true to enable sending status to GitHubpublic boolean getEnableHttp()
@DataBoundSetter public void setEnableHttp(boolean enableHttp)
enableHttp
- true to enable sending status to HTTP endpointpublic boolean getHttpVerifySSL()
@DataBoundSetter public void setHttpVerifySSL(boolean httpVerifySSL)
httpVerifySSL
- true to verify SSLpublic String getCredentialsId()
@DataBoundSetter public void setCredentialsId(String credentialsId)
credentialsId
- the credentials idpublic String getHttpCredentialsId()
@DataBoundSetter public void setHttpCredentialsId(String httpCredentialsId)
httpCredentialsId
- the credentials idpublic String getHttpEndpoint()
@DataBoundSetter public void setHttpEndpoint(String httpEndpoint)
httpEndpoint
- the endpoint URLpublic boolean getEnableInfluxDb()
@DataBoundSetter public void setEnableInfluxDb(boolean enableInfluxDb)
enableInfluxDb
- true to enable writing to InfluxDBpublic String getInfluxDbUrl()
@DataBoundSetter public void setInfluxDbUrl(String influxDbUrl)
influxDbUrl
- the URLpublic String getInfluxDbDatabase()
@DataBoundSetter public void setInfluxDbDatabase(String influxDbDatabase)
influxDbDatabase
- the databasepublic boolean getIgnoreSendingTestResultsToInflux()
@DataBoundSetter public void setIgnoreSendingTestResultsToInflux(boolean ignoreSendingTestResultsToInflux)
ignoreSendingTestResultsToInflux
- whether to ignore sending test resultspublic boolean getIgnoreSendingTestCoverageToInflux()
@DataBoundSetter public void setIgnoreSendingTestCoverageToInflux(boolean ignoreSendingTestCoverageToInflux)
ignoreSendingTestCoverageToInflux
- whether to ignore sending test resultspublic String getInfluxDbRetentionPolicy()
@DataBoundSetter public void setInfluxDbRetentionPolicy(String influxDbRetentionPolicy)
influxDbRetentionPolicy
- the retention policypublic Integer getDbVersion()
@DataBoundSetter public void setDbVersion(String dbVersion)
dbVersion
- the database version@DataBoundSetter public void setDbVersion(Integer dbVersion)
public hudson.util.ListBoxModel doFillDbVersionItems()
public boolean getEnableStatsd()
@DataBoundSetter public void setEnableStatsd(boolean enableStatsd)
enableStatsd
- true to enable writing to StatsDpublic String getStatsdHost()
@DataBoundSetter public void setStatsdHost(String statsdHost)
statsdHost
- the hostpublic String getStatsdPort()
@DataBoundSetter public void setStatsdPort(String statsdPort)
statsdPort
- the portpublic String getStatsdBucket()
@DataBoundSetter public void setStatsdBucket(String statsdBucket)
statsdBucket
- the bucketpublic String getStatsdMaxSize()
@DataBoundSetter public void setStatsdMaxSize(String statsdMaxSize)
statsdMaxSize
- the maximum packet sizepublic hudson.util.ListBoxModel doFillCredentialsIdItems(@QueryParameter String credentialsId)
credentialsId
- the current credentials idpublic hudson.util.ListBoxModel doFillHttpCredentialsIdItems(@QueryParameter String credentialsId)
credentialsId
- the current credentials idpublic hudson.util.FormValidation doCheckCredentialsId(@AncestorInPath hudson.model.Item item, @QueryParameter String value)
item
- context for validationvalue
- to validatepublic hudson.util.FormValidation doCheckHttpCredentialsId(@AncestorInPath hudson.model.Item item, @QueryParameter String value)
item
- context for validationvalue
- to validatepublic hudson.util.FormValidation doCheckHttpEndpoint(@AncestorInPath hudson.model.Item item, @QueryParameter String value)
Copyright © 2016–2020. All rights reserved.