@Extension
public class BuildStatusConfig
extends jenkins.model.GlobalConfiguration
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
|
hudson.util.FormValidation |
doCheckCredentialsId(hudson.model.Item item,
String value)
Validates the credentialsId
|
hudson.util.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
|
String |
getInfluxDbDatabase()
Get the value of influxDbDatabase
|
String |
getInfluxDbRetentionPolicy()
Get the value of influxDbRetentionPolicy
|
String |
getInfluxDbUrl()
Get the value of influxDbUrl
|
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 |
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
|
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()
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
- on form errorpublic 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 hudson.util.ListBoxModel doFillCredentialsIdItems(@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 validateCopyright © 2016–2018. All rights reserved.