Bitbucket-push-and-pull-request-plugin with bitbucket.org cloud not updating pull request

I have created a build pipeline using Jenkinsfile in a bitbucket cloud repo.

  • Jenkins is using x-auth-token with pull request write access to checkout the repo
  • webhook is configured in bitbucket cloud
  • build is triggered
  • trigger options
  • build fails intentionally
  • pull request is not updated, build count stays at 0 PR is not declined
    image

I have the feeling I’m missing some config on the Jenkins side on how to communicate back to bitbucket but I’m clueless what config I’m missing.

Found following in /manage/log/all.
Do I need to configure the receiver URL ? I don’t know where to set that.

Triggering test PR build # 15
Jan 16, 2024 9:46:15 AM INFO io.jenkins.plugins.generic.event.HttpEventSender send
Skipped event sending due to receiver URL not set
Jan 16, 2024 9:46:15 AM INFO io.jenkins.plugins.bitbucketpushandpullrequest.observer.BitBucketPPRObservable notifyObservers
Event: BitBucketPPRBuildStarted [context=BitBucketPPREventContext [scmTrigger=hudson.plugins.git.GitSCM@62cc355d, run=testbench/test PR build #15, action=BitBucketPPRPullRequestAction, filter=BitBucketPPRPullRequestTriggerFilter [actionFilter=BitBucketPPRPullRequestUpdatedActionFilter [getDescriptor()=io.jenkins.plugins.bitbucketpushandpullrequest.filter.pullrequest.cloud.BitBucketPPRPullRequestUpdatedActionFilter$ActionFilterDescriptorImpl@344d8877, getClass()=class io.jenkins.plugins.bitbucketpushandpullrequest.filter.pullrequest.cloud.BitBucketPPRPullRequestUpdatedActionFilter, hashCode()=2013888842, toString()=io.jenkins.plugins.bitbucketpushandpullrequest.filter.pullrequest.cloud.BitBucketPPRPullRequestUpdatedActionFilter@7809814a]], userRemoteConfig=null => https://bitbucket.org/domain/test.git (null), url=https://bitbucket.org/domain/test.git, trigger=io.jenkins.plugins.bitbucketpushandpullrequest.BitBucketPPRTrigger@5ade438a[]], handler=null] for observer io.jenkins.plugins.bitbucketpushandpullrequest.observer.BitBucketPPRPullRequestCloudObserver@6b96148a

Jenkins setup:
Jenkins: 2.426.2
OS: Linux - 3.10.0-1160.31.1.el7.x86_64
Java: 17.0.9 - Eclipse Adoptium (OpenJDK 64-Bit Server VM)

Office-365-Connector:4.20.2
active-directory:2.34
ansicolor:1.0.4
ant:497.v94e7d9fffa_b_9
antisamy-markup-formatter:162.v0e6ec0fcfcf6
apache-httpcomponents-client-4-api:4.5.14-208.v438351942757
authentication-tokens:1.53.v1c90fd9191a_b_
bitbucket-build-status-notifier:1.4.2
bitbucket-filter-project-trait:1.0
bitbucket-push-and-pull-request:3.0.1
blueocean:1.27.9
blueocean-autofavorite:1.2.5
blueocean-bitbucket-pipeline:1.27.9
blueocean-commons:1.27.9
blueocean-config:1.27.9
blueocean-core-js:1.27.9
blueocean-dashboard:1.27.9
blueocean-display-url:2.4.2
blueocean-events:1.27.9
blueocean-git-pipeline:1.27.9
blueocean-github-pipeline:1.27.9
blueocean-i18n:1.27.9
blueocean-jira:1.27.9
blueocean-jwt:1.27.9
blueocean-personalization:1.27.9
blueocean-pipeline-api-impl:1.27.9
blueocean-pipeline-editor:1.27.9
blueocean-pipeline-scm-api:1.27.9
blueocean-rest:1.27.9
blueocean-rest-impl:1.27.9
blueocean-web:1.27.9
bootstrap5-api:5.3.2-3
bouncycastle-api:2.30.1.77-225.v26ea_c9455fd9
branch-api:2.1144.v1425d1c3d5a_7
build-timeout:1.32
caffeine-api:3.1.8-133.v17b_1ff2e0599
calendar-view:0.3.3
checks-api:2.0.2
cloudbees-bitbucket-branch-source:856.v04c46c86f911
cloudbees-disk-usage-simple:203.v3f46a_7462b_1a_
cloudbees-folder:6.858.v898218f3609d
command-launcher:107.v773860566e2e
commons-httpclient3-api:3.1-3
commons-lang3-api:3.13.0-62.v7d18e55f51e2
commons-text-api:1.11.0-95.v22a_d30ee5d36
credentials:1311.vcf0a_900b_37c2
credentials-binding:642.v737c34dea_6c2
dark-theme:416.v535839b_c4e88
dashboard-view:2.495.v07e81500c3f2
data-tables-api:1.13.8-2
display-url-api:2.200.vb_9327d658781
docker-commons:439.va_3cb_0a_6a_fb_29
docker-workflow:572.v950f58993843
durable-task:543.v262f6a_803410
echarts-api:5.4.3-2
email-ext:2.103
embeddable-build-status:467.v4a_954796e45d
envinject:2.908.v66a_774b_31d93
envinject-api:1.199.v3ce31253ed13
external-monitor-job:215.v2e88e894db_f8
extra-columns:1.26
favorite:2.208.v91d65b_7792a_c
folder-properties:1.2.1
font-awesome-api:6.5.1-1
forensics-api:2.3.0
generic-event:41.v2b15d4dfb893
generic-webhook-trigger:1.88.2
git:5.2.1
git-client:4.6.0
git-forensics:2.0.0
git-server:99.va_0826a_b_cdfa_d
github:1.37.3.1
github-api:1.318-461.v7a_c09c9fa_d63
github-branch-source:1767.va_7d01ea_c7256
gradle:2.9
gravatar:2.2
gson-api:2.10.1-15.v0d99f670e0a_7
handy-uri-templates-2-api:2.1.8-30.v7e777411b_148
htmlpublisher:1.32
instance-identity:185.v303dc7c645f9
ionicons-api:56.v1b_1c8c49374e
jackson2-api:2.16.1-373.ve709c6871598
jakarta-activation-api:2.0.1-3
jakarta-mail-api:2.0.1-3
javadoc:243.vb_b_503b_b_45537
javax-activation-api:1.2.0-6
javax-mail-api:1.6.2-9
jaxb:2.3.9-1
jdk-tool:73.vddf737284550
jenkins-design-language:1.27.9
jersey2-api:2.41-133.va_03323b_a_1396
jfrog:1.5.0
jira:3.12
jjwt-api:0.11.5-77.v646c772fddb_0
jnr-posix-api:3.1.18-1
job-dsl:1.87
jobConfigHistory:1229.v3039470161a_d
joda-time-api:2.12.5-5.v5495a_235fedf
jquery:1.12.4-1
jquery3-api:3.7.1-1
jsch:0.2.16-86.v42e010d9484b_
json-path-api:2.8.0-21.v8b_7dc8b_1037b_
junit:1252.vfc2e5efa_294f
ldap:711.vb_d1a_491714dc
locale:431.v3435fa_8f8445
lockable-resources:1224.v5e9500f98269
log-file-filter:116.v881e1b_75ed59
mailer:463.vedf8358e006b_
mapdb-api:1.0.9-28.vf251ce40855d
matrix-auth:3.2.1
matrix-project:822.v01b_8c85d16d2
mercurial:1260.vdfb_723cdcc81
metrics:4.2.18-442.v02e107157925
mina-sshd-api-common:2.11.0-86.v836f585d47fa_
mina-sshd-api-core:2.11.0-86.v836f585d47fa_
multiple-scms:0.8
multiselect-parameter:1.7
naginator:1.436.vb_e769dcb_cdf6
next-executions:266.v11eb_5fa_496fb_
okhttp-api:4.11.0-157.v6852a_a_fa_ec11
openedge:0.9
opentelemetry:3.1092.va_2a_c52b_dd182
pam-auth:1.10
parameterized-scheduler:255.v73827fcdf618
pipeline-build-step:540.vb_e8849e1a_b_d8
pipeline-github-lib:42.v0739460cda_c4
pipeline-graph-analysis:202.va_d268e64deb_3
pipeline-graph-view:205.vb_8e3a_b_51f12e
pipeline-groovy-lib:689.veec561a_dee13
pipeline-input-step:477.v339683a_8d55e
pipeline-milestone-step:111.v449306f708b_7
pipeline-model-api:2.2168.vf921b_4e72c73
pipeline-model-definition:2.2168.vf921b_4e72c73
pipeline-model-extensions:2.2168.vf921b_4e72c73
pipeline-rest-api:2.34
pipeline-stage-step:305.ve96d0205c1c6
pipeline-stage-tags-metadata:2.2168.vf921b_4e72c73
pipeline-stage-view:2.34
pipeline-utility-steps:2.16.0
plain-credentials:143.v1b_df8b_d3b_e48
plugin-usage-plugin:4.2
plugin-util-api:3.8.0
prometheus:2.5.0
publish-over:0.22
pubsub-light:1.18
resource-disposer:0.23
scm-api:683.vb_16722fb_b_80b_
script-security:1313.v7a_6067dc7087
show-build-parameters:1.0
sidebar-link:2.4.1
snakeyaml-api:2.2-111.vc6598e30cc65
sonar:2.17.1
sonar-quality-gates:1.3.1
sse-gateway:1.26
ssh-credentials:308.ve4497b_ccd8f4
ssh-slaves:2.947.v64ee6b_f87b_c1
sshd:3.312.v1c601b_c83b_0e
structs:325.vcb_307d2a_2782
subversion:2.17.3
theme-manager:215.vc1ff18d67920
timestamper:1.26
token-macro:400.v35420b_922dcb_
trilead-api:2.133.vfb_8a_7b_9c5dd1
variant:60.v7290fc0eb_b_cd
view-job-filters:369.ve0513a_a_f5524
workflow-aggregator:596.v8c21c963d92d
workflow-api:1283.v99c10937efcb_
workflow-basic-steps:1042.ve7b_140c4a_e0c
workflow-cps:3837.v305192405b_c0
workflow-durable-task-step:1313.vcb_970b_d2a_fb_3
workflow-job:1385.vb_58b_86ea_fff1
workflow-multibranch:770.v1a_d0708dd1f6
workflow-scm-step:415.v434365564324
workflow-step-api:639.v6eca_cd8c04a_a_
workflow-support:865.v43e78cc44e0d
ws-cleanup:0.45

I activated extra logging, hope this helps.
There are ´401` s in the log- but I can’t see which credentials are being used

Jan 16, 2024 10:17:06 AM INFO io.jenkins.plugins.bitbucketpushandpullrequest.receiver.BitBucketPPRHookReceiver doIndex
Received POST request over Bitbucket hook
Jan 16, 2024 10:17:06 AM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.receiver.BitBucketPPRHookReceiver
the payload is: {"repository":{"scm":"git","name":"Test","links":{"html":{"href":"https://bitbucket.org/domain/test"},"self":{"href":"https://api.bitbucket.org/2.0/repositories/domain/test"}},"project":{"links":{"html":{"href":"https://bitbucket.org/domain/workspace/projects/CCEC"},"self":{"href":"https://api.bitbucket.org/2.0/workspaces/domain/projects/CCEC"}},"type":"project","uuid":"{2250cc5e-f631-4b33-948b-ef0d0efd7ac4}","key":"CCEC","name":"cceuser"},"owner":{"type":"team","display_name":"CCE","uuid":"{6bdf6929-f50c-4096-af41-8ecc5721499b}","links":{"html":{"href":"https://bitbucket.org/%7B6bdf6929-f50c-4096-af41-8ecc5721499b%7D/"},"self":{"href":"https://api.bitbucket.org/2.0/workspaces/%7B6bdf6929-f50c-4096-af41-8ecc5721499b%7D"}}},"type":"repository","is_private":true,"uuid":"{73d236d2-0d08-4ab3-9fd0-86260cf6cd5c}"},"actor":{"display_name":"proadmin","account_id":"5a816b48a08cc5310a6c6ff3","type":"user","links":{"html":{"href":"https://bitbucket.org/%7B6bf7b987-e20e-4240-9045-0af436d80a35%7D/"},"self":{"href":"https://api.bitbucket.org/2.0/users/%7B6bf7b987-e20e-4240-9045-0af436d80a35%7D"}},"nickname":"proadmin","uuid":"{6bf7b987-e20e-4240-9045-0af436d80a35}"},"pullrequest":{"id":"3","title":"20240112 add README.md","description":"","state":"OPEN","author":{"display_name":"Carl Verbiest","account_id":"557058:6e194fae-4a63-4121-8b0b-fc3ffe87e0cd","type":"user","links":{"html":{"href":"https://bitbucket.org/%7Beb2aae24-8fb0-4cc1-8055-a281652d52f6%7D/"},"self":{"href":"https://api.bitbucket.org/2.0/users/%7Beb2aae24-8fb0-4cc1-8055-a281652d52f6%7D"}},"nickname":"domainuser","uuid":"{eb2aae24-8fb0-4cc1-8055-a281652d52f6}"},"created_on":"Jan 12, 2024, 12:38:14 PM","updated_on":"Jan 16, 2024, 10:17:03 AM","source":{"branch":{"name":"user/feature/20240112_add_readme"},"commit":{"hash":"d7fb6a058224","type":"commit","links":{"html":{"href":"https://bitbucket.org/domain/test/commits/d7fb6a058224"},"self":{"href":"https://api.bitbucket.org/2.0/repositories/domain/test/commit/d7fb6a058224"}}},"repository":{"name":"Test","links":{"html":{"href":"https://bitbucket.org/domain/test"},"self":{"href":"https://api.bitbucket.org/2.0/repositories/domain/test"}},"type":"repository","uuid":"{73d236d2-0d08-4ab3-9fd0-86260cf6cd5c}"}},"destination":{"branch":{"name":"develop"},"commit":{"hash":"a72c0e41de52","type":"commit","links":{"html":{"href":"https://bitbucket.org/domain/test/commits/a72c0e41de52"},"self":{"href":"https://api.bitbucket.org/2.0/repositories/domain/test/commit/a72c0e41de52"}}},"repository":{"name":"Test","links":{"html":{"href":"https://bitbucket.org/domain/test"},"self":{"href":"https://api.bitbucket.org/2.0/repositories/domain/test"}},"type":"repository","uuid":"{73d236d2-0d08-4ab3-9fd0-86260cf6cd5c}"}},"participants":[{"type":"participant","user":{"display_name":"Bert Strobbe","account_id":"557058:5df417f7-ec36-4ec1-96f1-7d1a93af89ee","type":"user","links":{"html":{"href":"https://bitbucket.org/%7Bde012999-2b42-4cf0-afb1-f26f5c363aad%7D/"},"self":{"href":"https://api.bitbucket.org/2.0/users/%7Bde012999-2b42-4cf0-afb1-f26f5c363aad%7D"}},"nickname":"Bert Strobbe","uuid":"{de012999-2b42-4cf0-afb1-f26f5c363aad}"},"role":"REVIEWER","approved":false}],"type":"pullrequest","reason":"","links":{"html":{"href":"https://bitbucket.org/domain/test/pull-requests/3"},"self":{"href":"https://api.bitbucket.org/2.0/repositories/domain/test/pullrequests/3"},"decline":{"href":"https://api.bitbucket.org/2.0/repositories/domain/test/pullrequests/3/decline"},"diffstat":{"href":"https://api.bitbucket.org/2.0/repositories/domain/test/diffstat/domain/test:d7fb6a058224%0Da72c0e41de52?from_pullrequest_id\u003d3\u0026topic\u003dtrue"},"commits":{"href":"https://api.bitbucket.org/2.0/repositories/domain/test/pullrequests/3/commits"},"comments":{"href":"https://api.bitbucket.org/2.0/repositories/domain/test/pullrequests/3/comments"},"merge":{"href":"https://api.bitbucket.org/2.0/repositories/domain/test/pullrequests/3/merge"},"activity":{"href":"https://api.bitbucket.org/2.0/repositories/domain/test/pullrequests/3/activity"},"diff":{"href":"https://api.bitbucket.org/2.0/repositories/domain/test/diff/domain/test:d7fb6a058224%0Da72c0e41de52?from_pullrequest_id\u003d3\u0026topic\u003dtrue"},"approve":{"href":"https://api.bitbucket.org/2.0/repositories/domain/test/pullrequests/3/approve"},"statuses":{"href":"https://api.bitbucket.org/2.0/repositories/domain/test/pullrequests/3/statuses"}}}}
Jan 16, 2024 10:17:06 AM FINE io.jenkins.plugins.bitbucketpushandpullrequest.observer.BitBucketPPRObserverFactory
Add BitBucketPPRPullRequestCloudObserver for {}
Jan 16, 2024 10:17:06 AM INFO io.jenkins.plugins.bitbucketpushandpullrequest.processor.BitBucketPPRPayloadProcessorFactory createProcessor
Create BitBucketPPRPullRequestCloudPayloadProcessor
Jan 16, 2024 10:17:06 AM FINE io.jenkins.plugins.bitbucketpushandpullrequest.BitBucketPPRJobProbe
Trigger not set

... trimmed

Jan 16, 2024 10:17:06 AM FINE io.jenkins.plugins.bitbucketpushandpullrequest.BitBucketPPRJobProbe
Trigger not set
Jan 16, 2024 10:17:08 AM FINE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils
Following allowed branches patterns are set: 
Jan 16, 2024 10:17:08 AM FINE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils
The branchName in action is: develop
Jan 16, 2024 10:17:08 AM FINE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils
The environment variables are: null
Jan 16, 2024 10:17:08 AM INFO io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils lambda$matches$2
Matched branch: 
Jan 16, 2024 10:17:08 AM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.BitBucketPPRTrigger
Should schedule job: true and (polling result has changes: false or trigger also if there aren't changes: true)
Jan 16, 2024 10:17:08 AM FINE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils
Following allowed branches patterns are set: 
Jan 16, 2024 10:17:08 AM FINE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils
The branchName in action is: develop
Jan 16, 2024 10:17:08 AM FINE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils
The environment variables are: null
Jan 16, 2024 10:17:08 AM INFO io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils lambda$matches$2
Matched branch: 
Jan 16, 2024 10:17:15 AM INFO io.jenkins.plugins.bitbucketpushandpullrequest.BitBucketPPRTrigger scheduleJob
Triggering test PR build # 16
Jan 16, 2024 10:17:15 AM INFO io.jenkins.plugins.bitbucketpushandpullrequest.observer.BitBucketPPRObservable notifyObservers
Event: BitBucketPPRBuildStarted [context=BitBucketPPREventContext [scmTrigger=hudson.plugins.git.GitSCM@62cc355d, run=testbench/test PR build #16, action=BitBucketPPRPullRequestAction, filter=BitBucketPPRPullRequestTriggerFilter [actionFilter=BitBucketPPRPullRequestUpdatedActionFilter [getDescriptor()=io.jenkins.plugins.bitbucketpushandpullrequest.filter.pullrequest.cloud.BitBucketPPRPullRequestUpdatedActionFilter$ActionFilterDescriptorImpl@344d8877, getClass()=class io.jenkins.plugins.bitbucketpushandpullrequest.filter.pullrequest.cloud.BitBucketPPRPullRequestUpdatedActionFilter, hashCode()=2013888842, toString()=io.jenkins.plugins.bitbucketpushandpullrequest.filter.pullrequest.cloud.BitBucketPPRPullRequestUpdatedActionFilter@7809814a]], userRemoteConfig=null => https://bitbucket.org/domain/test.git (null), url=https://bitbucket.org/domain/test.git, trigger=io.jenkins.plugins.bitbucketpushandpullrequest.BitBucketPPRTrigger@5ade438a[]], handler=null] for observer io.jenkins.plugins.bitbucketpushandpullrequest.observer.BitBucketPPRPullRequestCloudObserver@57d9e280
Jan 16, 2024 10:17:15 AM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.client.api.BitBucketPPRBasicAuthApiConsumer
Send state notification with StandardUsernamePasswordCredentials
Jan 16, 2024 10:17:16 AM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.client.BitBucketPPRClientCloudVisitor
Result of the status notification is: , with status code: 401
Jan 16, 2024 10:17:22 AM INFO io.jenkins.plugins.bitbucketpushandpullrequest.observer.BitBucketPPRObservable notifyObservers
Event: BitBucketPPRBuildFinished [context=BitBucketPPREventContext [scmTrigger=hudson.plugins.git.GitSCM@62cc355d, run=testbench/test PR build #16, action=BitBucketPPRPullRequestAction, filter=BitBucketPPRPullRequestTriggerFilter [actionFilter=BitBucketPPRPullRequestUpdatedActionFilter [getDescriptor()=io.jenkins.plugins.bitbucketpushandpullrequest.filter.pullrequest.cloud.BitBucketPPRPullRequestUpdatedActionFilter$ActionFilterDescriptorImpl@344d8877, getClass()=class io.jenkins.plugins.bitbucketpushandpullrequest.filter.pullrequest.cloud.BitBucketPPRPullRequestUpdatedActionFilter, hashCode()=2013888842, toString()=io.jenkins.plugins.bitbucketpushandpullrequest.filter.pullrequest.cloud.BitBucketPPRPullRequestUpdatedActionFilter@7809814a]], userRemoteConfig=null => https://bitbucket.org/domain/test.git (null), url=https://bitbucket.org/domain/test.git, trigger=io.jenkins.plugins.bitbucketpushandpullrequest.BitBucketPPRTrigger@5ade438a[]], handler=null] for observer io.jenkins.plugins.bitbucketpushandpullrequest.observer.BitBucketPPRPullRequestCloudObserver@57d9e280
Jan 16, 2024 10:17:22 AM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.client.api.BitBucketPPRBasicAuthApiConsumer
Send state notification with StandardUsernamePasswordCredentials
Jan 16, 2024 10:17:22 AM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.client.BitBucketPPRClientCloudVisitor
Result of the status notification is: , with status code: 401
Jan 16, 2024 10:17:22 AM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.client.api.BitBucketPPRBasicAuthApiConsumer
Send state notification with StandardUsernamePasswordCredentials
Jan 16, 2024 10:17:23 AM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.client.BitBucketPPRClientCloudVisitor
Result of the status notification is: , with status code: 401
Jan 16, 2024 10:17:23 AM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.client.api.BitBucketPPRBasicAuthApiConsumer
Send state notification with StandardUsernamePasswordCredentials
Jan 16, 2024 10:17:23 AM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.client.BitBucketPPRClientCloudVisitor
Result of the status notification is: , with status code: 401

Found [Request] Documentation on Bitbucket Cloud integration for build status propagation back to BB-cloud · Issue #316 · jenkinsci/bitbucket-push-and-pull-request-plugin · GitHub issue related to this issue. Unfortunately, no solution there yet.

I managed to get it working, will update the github issue.

I managed to get it working, more info on

Hi there,
I’ve run into the same issue. I’d created the Oauth consumer user. Any updates to the Bitbucket PR is triggering the build however the success/failure of the buils is not propagated back. Do you mind guiding me on how do I enable the logs please and how to debug this issue.

Thank you.

I’ve managed to enable the logs. I’ll share some logs shortly.