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
Nested ClassesModifier and TypeClassDescriptionstatic class
Our constructor.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
decorateContext
(jenkins.scm.api.trait.SCMSourceContext<?, ?> context) boolean
Should not build jobs be communicated as stopped.boolean
Return if aborted builds will be communicated as stopped.boolean
Should unstable builds be communicated as success to Bitbucket.boolean
Use a readable id as key for the build notification status.void
setDisableNotificationForNotBuildJobs
(boolean isNotificationDisabled) void
setSendStoppedNotificationForAbortBuild
(boolean sendStop) Set if aborted builds will be communicated as stopped.void
setSendSuccessNotificationForUnstableBuild
(boolean isSendSuccess) void
setUseReadableNotificationIds
(boolean useReadableNotificationIds) 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()Should unstable builds be communicated as success to Bitbucket.- 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:
- if will be communicated to Bitbucket as Stopped/Cancelled build failed otherwise.
-
setDisableNotificationForNotBuildJobs
@DataBoundSetter public void setDisableNotificationForNotBuildJobs(boolean isNotificationDisabled) -
getDisableNotificationForNotBuildJobs
public boolean getDisableNotificationForNotBuildJobs()Should not build jobs be communicated as stopped.- Returns:
- if will be communicated to Bitbucket as Stopped/Cancelled build failed otherwise.
-
getUseReadableNotificationIds
public boolean getUseReadableNotificationIds()Use a readable id as key for the build notification status.- Returns:
- if will not hash the generated key of the build notification status.
-
setUseReadableNotificationIds
@DataBoundSetter public void setUseReadableNotificationIds(boolean useReadableNotificationIds) -
decorateContext
protected void decorateContext(jenkins.scm.api.trait.SCMSourceContext<?, ?> context) - Overrides:
decorateContext
in classjenkins.scm.api.trait.SCMSourceTrait
-