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
,OnMaster
@Extension public class BitBucketPPRPluginConfig extends GlobalConfiguration
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static String
BITBUCKET_PPR_PLUGIN_CONFIGURATION_ID
String
credentialsId
String
hookUrl
boolean
notifyBitBucket
String
propagationUrl
String
singleJob
boolean
useJobNameAsBuildKey
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description BitBucketPPRPluginConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
FormValidation
doCheckPropagationUrl(String value)
ListBoxModel
doFillCredentialsIdItems(Item context, String remote, String credentialsId)
String
getCredentialsId()
String
getDisplayName()
String
getHookUrl()
static BitBucketPPRPluginConfig
getInstance()
boolean
getNotifyBitBucket()
String
getPropagationUrl()
String
getSingleJob()
boolean
getUseJobNameAsBuildKey()
boolean
isHookUrlSet()
boolean
isPropagationUrlSet()
boolean
isSingleJobSet()
void
setCredentialsId(String credentialsId)
void
setHookUrl(String hookUrl)
void
setNotifyBitBucket(boolean notifyBitBucket)
void
setPropagationUrl(String propagationUrl)
void
setSingleJob(String singleJob)
void
setUseJobNameAsBuildKey(boolean useJobNameAsBuildKey)
-
Methods inherited from class jenkins.model.GlobalConfiguration
all, getDescriptor, getGlobalConfigPage
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, 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, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Field Detail
-
BITBUCKET_PPR_PLUGIN_CONFIGURATION_ID
public static final String BITBUCKET_PPR_PLUGIN_CONFIGURATION_ID
- See Also:
- Constant Field Values
-
hookUrl
public String hookUrl
-
notifyBitBucket
public boolean notifyBitBucket
-
useJobNameAsBuildKey
public boolean useJobNameAsBuildKey
-
credentialsId
public String credentialsId
-
singleJob
public String singleJob
-
propagationUrl
public String propagationUrl
-
-
Method Detail
-
getInstance
public static BitBucketPPRPluginConfig getInstance()
-
setHookUrl
@DataBoundSetter public void setHookUrl(String hookUrl)
-
setPropagationUrl
@DataBoundSetter public void setPropagationUrl(String propagationUrl)
-
doCheckPropagationUrl
public FormValidation doCheckPropagationUrl(@QueryParameter String value)
-
isHookUrlSet
public boolean isHookUrlSet()
-
getHookUrl
public String getHookUrl()
-
getNotifyBitBucket
public boolean getNotifyBitBucket()
-
getPropagationUrl
public String getPropagationUrl()
-
isPropagationUrlSet
public boolean isPropagationUrlSet()
-
setNotifyBitBucket
@DataBoundSetter public void setNotifyBitBucket(@CheckForNull boolean notifyBitBucket)
-
getUseJobNameAsBuildKey
public boolean getUseJobNameAsBuildKey()
-
setUseJobNameAsBuildKey
@DataBoundSetter public void setUseJobNameAsBuildKey(@CheckForNull boolean useJobNameAsBuildKey)
-
setCredentialsId
@DataBoundSetter public void setCredentialsId(@CheckForNull String credentialsId)
-
getCredentialsId
public String getCredentialsId()
-
setSingleJob
@DataBoundSetter public void setSingleJob(String singleJob)
-
isSingleJobSet
public boolean isSingleJobSet()
-
getSingleJob
public String getSingleJob()
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<GlobalConfiguration>
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws Descriptor.FormException
- Overrides:
configure
in classGlobalConfiguration
- Throws:
Descriptor.FormException
-
doFillCredentialsIdItems
public ListBoxModel doFillCredentialsIdItems(@AncestorInPath Item context, @QueryParameter String remote, @QueryParameter String credentialsId)
-
-