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

@Extension public class BitBucketPPRPluginConfig extends GlobalConfiguration
  • Field Details

    • BITBUCKET_PPR_PLUGIN_CONFIGURATION_ID

      public static final String BITBUCKET_PPR_PLUGIN_CONFIGURATION_ID
      See Also:
    • hookUrl

      public String hookUrl
    • notifyBitBucket

      public boolean notifyBitBucket
    • useJobNameAsBuildKey

      public boolean useJobNameAsBuildKey
    • credentialsId

      public String credentialsId
    • webhookSecretCredentialsId

      public String webhookSecretCredentialsId
    • singleJob

      public String singleJob
    • propagationUrl

      public String propagationUrl
    • setBitbucketPayload

      public boolean setBitbucketPayload
    • setBitbucketPrDescription

      public boolean setBitbucketPrDescription
  • Constructor Details

    • BitBucketPPRPluginConfig

      public BitBucketPPRPluginConfig()
  • Method Details

    • getInstance

      public static BitBucketPPRPluginConfig getInstance()
    • setHookUrl

      @DataBoundSetter public void setHookUrl(String hookUrl)
    • setPropagationUrl

      @DataBoundSetter public void setPropagationUrl(String propagationUrl)
    • doCheckPropagationUrl

      @POST 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(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

      @DataBoundSetter public void setCredentialsId(@CheckForNull String credentialsId)
    • getCredentialsId

      public String getCredentialsId()
    • setWebhookSecretCredentialsId

      @DataBoundSetter public void setWebhookSecretCredentialsId(@CheckForNull String webhookSecretCredentialsId)
    • getWebhookSecretCredentialsId

      public String getWebhookSecretCredentialsId()
    • isWebhookSecretSet

      public boolean isWebhookSecretSet()
    • getWebhookSecret

      @CheckForNull public String 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

      @DataBoundSetter public void setSingleJob(String singleJob)
    • isSingleJobSet

      public boolean isSingleJobSet()
    • getSingleJob

      public String getSingleJob()
    • getDisplayName

      @NonNull public String getDisplayName()
      Overrides:
      getDisplayName in class Descriptor<GlobalConfiguration>
    • configure

      public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
      Overrides:
      configure in class GlobalConfiguration
    • doFillCredentialsIdItems

      @POST public ListBoxModel doFillCredentialsIdItems(@AncestorInPath Item context, @QueryParameter String remote, @QueryParameter String credentialsId)
    • doFillWebhookSecretCredentialsIdItems

      @POST public ListBoxModel doFillWebhookSecretCredentialsIdItems(@QueryParameter String webhookSecretCredentialsId)