Class BitbucketBuildStatusNotificationsTrait

java.lang.Object
hudson.model.AbstractDescribableImpl<T>
jenkins.scm.api.trait.SCMTrait<jenkins.scm.api.trait.SCMSourceTrait>
jenkins.scm.api.trait.SCMSourceTrait
com.cloudbees.jenkins.plugins.bitbucket.BitbucketBuildStatusNotificationsTrait
All Implemented Interfaces:
ExtensionPoint, Describable<jenkins.scm.api.trait.SCMSourceTrait>

public class BitbucketBuildStatusNotificationsTrait extends jenkins.scm.api.trait.SCMSourceTrait
A SCMSourceTrait for BitbucketSCMSource that sets how notifications are sent to Bitbucket.
Since:
2.10.0
  • Constructor Details

    • BitbucketBuildStatusNotificationsTrait

      @DataBoundConstructor public BitbucketBuildStatusNotificationsTrait()
      Constructor.
  • Method Details

    • setSendSuccessNotificationForUnstableBuild

      @DataBoundSetter public void setSendSuccessNotificationForUnstableBuild(boolean isSendSuccess)
    • getSendSuccessNotificationForUnstableBuild

      public boolean getSendSuccessNotificationForUnstableBuild()
      Returns:
      if unstable builds will be communicated as successful
    • setSendStoppedNotificationForAbortBuild

      @DataBoundSetter public void setSendStoppedNotificationForAbortBuild(boolean sendStop)
      Set if aborted builds will be communicated as stopped.
      Parameters:
      sendStop - comunicate Stop/Cancelled build status to Bitbucket for aborted build.
    • getSendStoppedNotificationForAbortBuild

      public boolean getSendStoppedNotificationForAbortBuild()
      Return if aborted builds will be communicated as stopped.
      Returns:
      true will be comunicate to Bitbucket as Stopped/Cancelled build failed otherwise.
    • setDisableNotificationForNotBuildJobs

      @DataBoundSetter public void setDisableNotificationForNotBuildJobs(boolean isNotificationDisabled)
    • getDisableNotificationForNotBuildJobs

      public boolean getDisableNotificationForNotBuildJobs()
      Returns:
      if unstable builds will be communicated
    • decorateContext

      protected void decorateContext(jenkins.scm.api.trait.SCMSourceContext<?,?> context)
      Overrides:
      decorateContext in class jenkins.scm.api.trait.SCMSourceTrait