Class BitBucketPPRPluginConfig
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
io.jenkins.plugins.bitbucketpushandpullrequest.config.BitBucketPPRPluginConfig
- All Implemented Interfaces:
ExtensionPoint, Describable<GlobalConfiguration>, Saveable, Loadable, OnMaster
-
Nested Class Summary
Nested classes/interfaces inherited from class Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfNested classes/interfaces inherited from interface ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsFields inherited from class Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) doCheckPropagationUrl(String value) doFillCredentialsIdItems(Item context, String remote, String credentialsId) doFillWebhookSecretCredentialsIdItems(String webhookSecretCredentialsId) static BitBucketPPRPluginConfigbooleanbooleanbooleanbooleanResolves the configured webhook secret credential to its plain text, or returns null when no credential is configured or the configured id cannot be resolved.booleanbooleanbooleanbooleanvoidsetCredentialsId(String credentialsId) voidsetHookUrl(String hookUrl) voidsetNotifyBitBucket(boolean notifyBitBucket) voidsetPropagationUrl(String propagationUrl) voidsetSetBitbucketPayload(boolean setBitbucketPayload) voidsetSetBitbucketPrDescription(boolean setBitbucketPrDescription) voidsetSingleJob(String singleJob) voidsetUseJobNameAsBuildKey(boolean useJobNameAsBuildKey) voidsetWebhookSecretCredentialsId(String webhookSecretCredentialsId) Methods inherited from class GlobalConfiguration
all, configure, getDescriptor, getGlobalConfigPageMethods inherited from class Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, 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, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Field Details
-
BITBUCKET_PPR_PLUGIN_CONFIGURATION_ID
- See Also:
-
hookUrl
-
notifyBitBucket
public boolean notifyBitBucket -
useJobNameAsBuildKey
public boolean useJobNameAsBuildKey -
credentialsId
-
webhookSecretCredentialsId
-
singleJob
-
propagationUrl
-
setBitbucketPayload
public boolean setBitbucketPayload -
setBitbucketPrDescription
public boolean setBitbucketPrDescription
-
-
Constructor Details
-
BitBucketPPRPluginConfig
public BitBucketPPRPluginConfig()
-
-
Method Details
-
getInstance
-
setHookUrl
-
setPropagationUrl
-
doCheckPropagationUrl
-
isHookUrlSet
public boolean isHookUrlSet() -
getHookUrl
-
getNotifyBitBucket
public boolean getNotifyBitBucket() -
getPropagationUrl
-
isPropagationUrlSet
public boolean isPropagationUrlSet() -
setNotifyBitBucket
@DataBoundSetter public void setNotifyBitBucket(boolean notifyBitBucket) -
getSetBitbucketPayload
public boolean getSetBitbucketPayload() -
setSetBitbucketPayload
@DataBoundSetter public void setSetBitbucketPayload(boolean setBitbucketPayload) -
getSetBitbucketPrDescription
public boolean getSetBitbucketPrDescription() -
setSetBitbucketPrDescription
@DataBoundSetter public void setSetBitbucketPrDescription(boolean setBitbucketPrDescription) -
getUseJobNameAsBuildKey
public boolean getUseJobNameAsBuildKey() -
setUseJobNameAsBuildKey
@DataBoundSetter public void setUseJobNameAsBuildKey(boolean useJobNameAsBuildKey) -
setCredentialsId
-
getCredentialsId
-
setWebhookSecretCredentialsId
@DataBoundSetter public void setWebhookSecretCredentialsId(@CheckForNull String webhookSecretCredentialsId) -
getWebhookSecretCredentialsId
-
isWebhookSecretSet
public boolean isWebhookSecretSet() -
getWebhookSecret
Resolves the configured webhook secret credential to its plain text, or returns null when no credential is configured or the configured id cannot be resolved. The credential is looked up on every call so that rotating the secret takes effect without a restart. -
setSingleJob
-
isSingleJobSet
public boolean isSingleJobSet() -
getSingleJob
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<GlobalConfiguration>
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) - Overrides:
configurein classGlobalConfiguration
-
doFillCredentialsIdItems
@POST public ListBoxModel doFillCredentialsIdItems(@AncestorInPath Item context, @QueryParameter String remote, @QueryParameter String credentialsId) -
doFillWebhookSecretCredentialsIdItems
@POST public ListBoxModel doFillWebhookSecretCredentialsIdItems(@QueryParameter String webhookSecretCredentialsId)
-