Class BitBucketPPRRepositoryCloudPayloadProcessor
java.lang.Object
io.jenkins.plugins.bitbucketpushandpullrequest.processor.BitBucketPPRPayloadProcessor
io.jenkins.plugins.bitbucketpushandpullrequest.processor.BitBucketPPRRepositoryCloudPayloadProcessor
-
Field Summary
Fields inherited from class io.jenkins.plugins.bitbucketpushandpullrequest.processor.BitBucketPPRPayloadProcessor
bitbucketEvent, jobProbe -
Constructor Summary
ConstructorsConstructorDescriptionBitBucketPPRRepositoryCloudPayloadProcessor(BitBucketPPRJobProbe jobProbe, BitBucketPPRHookEvent bitbucketEvent) -
Method Summary
Modifier and TypeMethodDescriptionbuildActionForJobs(BitBucketPPRPayload payload) Builds the action for the given payload.Methods inherited from class io.jenkins.plugins.bitbucketpushandpullrequest.processor.BitBucketPPRPayloadProcessor
processPayload, triggerMatchingJobs
-
Constructor Details
-
BitBucketPPRRepositoryCloudPayloadProcessor
public BitBucketPPRRepositoryCloudPayloadProcessor(@Nonnull BitBucketPPRJobProbe jobProbe, @Nonnull BitBucketPPRHookEvent bitbucketEvent)
-
-
Method Details
-
buildActionForJobs
public BitBucketPPRAction buildActionForJobs(@Nonnull BitBucketPPRPayload payload) throws BitBucketPPRPayloadPropertyNotFoundException Description copied from class:BitBucketPPRPayloadProcessorBuilds the action for the given payload. Constructing the action validates that the payload carries the properties the event requires, so this is the point at which a malformed payload is rejected (withBitBucketPPRPayloadPropertyNotFoundException). Callers can invoke it before acknowledging the webhook, so a malformed request maps to a 4xx instead of a silent 200.- Specified by:
buildActionForJobsin classBitBucketPPRPayloadProcessor- Throws:
BitBucketPPRPayloadPropertyNotFoundException
-