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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Our constructor.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
decorateContext
(jenkins.scm.api.trait.SCMSourceContext<?, ?> context) boolean
boolean
Return if aborted builds will be communicated as stopped.boolean
void
setDisableNotificationForNotBuildJobs
(boolean isNotificationDisabled) void
setSendStoppedNotificationForAbortBuild
(boolean sendStop) Set if aborted builds will be communicated as stopped.void
setSendSuccessNotificationForUnstableBuild
(boolean isSendSuccess) Methods inherited from class jenkins.scm.api.trait.SCMSourceTrait
_for, _for, all, applyToBuilder, applyToContext, applyToObserver, decorateBuilder, decorateObserver, getDescriptor, includeCategory, isCategoryEnabled
Methods inherited from class jenkins.scm.api.trait.SCMTrait
asSetList, asSetList, find
-
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 classjenkins.scm.api.trait.SCMSourceTrait
-