public class BitbucketSCMSourceContext extends jenkins.scm.api.trait.SCMSourceContext<BitbucketSCMSourceContext,BitbucketSCMSourceRequest>
SCMSourceContext
for bitbucket.Constructor and Description |
---|
BitbucketSCMSourceContext(jenkins.scm.api.SCMSourceCriteria criteria,
jenkins.scm.api.SCMHeadObserver observer)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
disableNotificationForNotBuildJobs()
Returns
false if not build jobs should be passed to Bitbucket. |
Set<jenkins.scm.api.mixin.ChangeRequestCheckoutStrategy> |
forkPRStrategies()
Returns the set of
ChangeRequestCheckoutStrategy to create for each fork pull request. |
BitbucketSCMSourceRequest |
newRequest(jenkins.scm.api.SCMSource scmSource,
TaskListener taskListener) |
boolean |
notificationsDisabled()
Returns
true if notifications should be disabled. |
Set<jenkins.scm.api.mixin.ChangeRequestCheckoutStrategy> |
originPRStrategies()
Returns the set of
ChangeRequestCheckoutStrategy to create for each origin pull request. |
boolean |
sendSuccessNotificationForUnstableBuild()
Returns
true if unstable builds should be passed as successful to Bitbucket. |
boolean |
skipPublicPRs()
Returns
true if pull requests from public repositories should be skipped. |
BitbucketSCMSourceContext |
skipPublicPRs(boolean skipPublicPRs)
Controls the skipping of pull requests from public repositories.
|
boolean |
wantBranches()
Returns
true if the BitbucketSCMSourceRequest will need information about branches. |
BitbucketSCMSourceContext |
wantBranches(boolean include)
Adds a requirement for branch details to any
BitbucketSCMSourceRequest for this context. |
boolean |
wantForkPRs()
Returns
true if the BitbucketSCMSourceRequest will need information about fork pull requests. |
BitbucketSCMSourceContext |
wantForkPRs(boolean include)
Adds a requirement for fork pull request details to any
BitbucketSCMSourceRequest for this context. |
boolean |
wantOriginPRs()
Returns
true if the BitbucketSCMSourceRequest will need information about origin pull requests. |
BitbucketSCMSourceContext |
wantOriginPRs(boolean include)
Adds a requirement for origin pull request details to any
BitbucketSCMSourceRequest for this context. |
boolean |
wantPRs()
Returns
true if the BitbucketSCMSourceRequest will need information about pull requests. |
boolean |
wantTags()
Returns
true if the BitbucketSCMSourceRequest will need information about tags. |
BitbucketSCMSourceContext |
wantTags(boolean include)
Adds a requirement for tag details to any
BitbucketSCMSourceRequest for this context. |
WebhookConfiguration |
webhookConfiguration()
Returns the
WebhookConfiguration configuration. |
BitbucketSCMSourceContext |
webhookConfiguration(WebhookConfiguration configuration)
Defines the
WebhookRegistration mode to use in this context. |
WebhookRegistration |
webhookRegistration()
Returns the
WebhookRegistration mode. |
BitbucketSCMSourceContext |
webhookRegistration(WebhookRegistration mode)
Defines the
WebhookRegistration mode to use in this context. |
BitbucketSCMSourceContext |
withDisableNotificationForNotBuildJobs(boolean disabled)
Defines behaviour of not-built jobs in Bitbucket.
|
BitbucketSCMSourceContext |
withForkPRStrategies(Set<jenkins.scm.api.mixin.ChangeRequestCheckoutStrategy> strategies)
Defines the
ChangeRequestCheckoutStrategy instances to create for each fork pull request. |
BitbucketSCMSourceContext |
withNotificationsDisabled(boolean disabled)
Defines the notification mode to use in this context.
|
BitbucketSCMSourceContext |
withOriginPRStrategies(Set<jenkins.scm.api.mixin.ChangeRequestCheckoutStrategy> strategies)
Defines the
ChangeRequestCheckoutStrategy instances to create for each origin pull request. |
BitbucketSCMSourceContext |
withSendSuccessNotificationForUnstableBuild(boolean isUnstableBuildSuccess)
Defines behaviour of unstable builds in Bitbucket.
|
authorities, criteria, filters, observer, prefilters, withAuthority, withCriteria, withFilter, withPrefilter, withTrait, withTraits, withTraits
public BitbucketSCMSourceContext(@CheckForNull jenkins.scm.api.SCMSourceCriteria criteria, @NonNull jenkins.scm.api.SCMHeadObserver observer)
criteria
- (optional) criteria.observer
- the SCMHeadObserver
.public final boolean wantBranches()
true
if the BitbucketSCMSourceRequest
will need information about branches.true
if the BitbucketSCMSourceRequest
will need information about branches.public final boolean wantTags()
true
if the BitbucketSCMSourceRequest
will need information about tags.true
if the BitbucketSCMSourceRequest
will need information about tags.public final boolean wantPRs()
true
if the BitbucketSCMSourceRequest
will need information about pull requests.true
if the BitbucketSCMSourceRequest
will need information about pull requests.public final boolean wantOriginPRs()
true
if the BitbucketSCMSourceRequest
will need information about origin pull requests.true
if the BitbucketSCMSourceRequest
will need information about origin pull requests.public final boolean wantForkPRs()
true
if the BitbucketSCMSourceRequest
will need information about fork pull requests.true
if the BitbucketSCMSourceRequest
will need information about fork pull requests.public final boolean skipPublicPRs()
true
if pull requests from public repositories should be skipped.true
if pull requests from public repositories should be skipped.@NonNull public final Set<jenkins.scm.api.mixin.ChangeRequestCheckoutStrategy> originPRStrategies()
ChangeRequestCheckoutStrategy
to create for each origin pull request.ChangeRequestCheckoutStrategy
to create for each origin pull request.@NonNull public final Set<jenkins.scm.api.mixin.ChangeRequestCheckoutStrategy> forkPRStrategies()
ChangeRequestCheckoutStrategy
to create for each fork pull request.ChangeRequestCheckoutStrategy
to create for each fork pull request.@NonNull public final WebhookRegistration webhookRegistration()
WebhookRegistration
mode.WebhookRegistration
mode.@NonNull public final WebhookConfiguration webhookConfiguration()
WebhookConfiguration
configuration.WebhookConfiguration
configuration.public final boolean notificationsDisabled()
true
if notifications should be disabled.true
if notifications should be disabled.public final boolean sendSuccessNotificationForUnstableBuild()
true
if unstable builds should be passed as successful to Bitbucket.true
if unstable builds should be passed as successful to Bitbucket.public boolean disableNotificationForNotBuildJobs()
false
if not build jobs should be passed to Bitbucket.false
if not build jobs should be passed to Bitbucket.@NonNull public final BitbucketSCMSourceContext wantBranches(boolean include)
BitbucketSCMSourceRequest
for this context.include
- true
to add the requirement or false
to leave the requirement as is (makes
simpler with method chaining)this
for method chaining.@NonNull public final BitbucketSCMSourceContext wantTags(boolean include)
BitbucketSCMSourceRequest
for this context.include
- true
to add the requirement or false
to leave the requirement as is (makes
simpler with method chaining)this
for method chaining.@NonNull public final BitbucketSCMSourceContext wantOriginPRs(boolean include)
BitbucketSCMSourceRequest
for this context.include
- true
to add the requirement or false
to leave the requirement as is (makes
simpler with method chaining)this
for method chaining.@NonNull public final BitbucketSCMSourceContext wantForkPRs(boolean include)
BitbucketSCMSourceRequest
for this context.include
- true
to add the requirement or false
to leave the requirement as is (makes
simpler with method chaining)this
for method chaining.public final BitbucketSCMSourceContext skipPublicPRs(boolean skipPublicPRs)
skipPublicPRs
- true
if pull requests from public repositories should be skipped.this
for method chaining.@NonNull public final BitbucketSCMSourceContext withOriginPRStrategies(@NonNull Set<jenkins.scm.api.mixin.ChangeRequestCheckoutStrategy> strategies)
ChangeRequestCheckoutStrategy
instances to create for each origin pull request.strategies
- the strategies.this
for method chaining.@NonNull public final BitbucketSCMSourceContext withForkPRStrategies(@NonNull Set<jenkins.scm.api.mixin.ChangeRequestCheckoutStrategy> strategies)
ChangeRequestCheckoutStrategy
instances to create for each fork pull request.strategies
- the strategies.this
for method chaining.@NonNull public final BitbucketSCMSourceContext webhookConfiguration(WebhookConfiguration configuration)
WebhookRegistration
mode to use in this context.configuration
- the webhook configuration.this
for method chaining.@NonNull public final BitbucketSCMSourceContext webhookRegistration(WebhookRegistration mode)
WebhookRegistration
mode to use in this context.mode
- the mode.this
for method chaining.@NonNull public final BitbucketSCMSourceContext withNotificationsDisabled(boolean disabled)
disabled
- true
to disable automatic notifications.this
for method chaining.@NonNull public final BitbucketSCMSourceContext withSendSuccessNotificationForUnstableBuild(boolean isUnstableBuildSuccess)
isUnstableBuildSuccess
- true
to consider unstable builds successful when notifying Bitbucket.this
for method chaining.@NonNull public final BitbucketSCMSourceContext withDisableNotificationForNotBuildJobs(boolean disabled)
disabled
- false
to report not-built jobs to Bitbucket.this
for method chaining.@NonNull public BitbucketSCMSourceRequest newRequest(@NonNull jenkins.scm.api.SCMSource scmSource, TaskListener taskListener)
newRequest
in class jenkins.scm.api.trait.SCMSourceContext<BitbucketSCMSourceContext,BitbucketSCMSourceRequest>
Copyright © 2016–2022. All rights reserved.