jenkinsci / bitbucket-branch-source-plugin

Bitbucket Branch Source Plugin
https://plugins.jenkins.io/cloudbees-bitbucket-branch-source
MIT License
216 stars 351 forks source link

webhook endpoint notfound #500

Closed hayo0o0o0 closed 3 years ago

hayo0o0o0 commented 3 years ago

Version report

Jenkins and plugins versions report:

Jenkins: 2.303.1
OS: Linux - 4.9.0-16-amd64
---
ace-editor:1.1
ant:1.11
antisamy-markup-formatter:1.6
apache-httpcomponents-client-4-api:4.5.13-1.0
atlassian-jira-software-cloud:1.3.0
audit-trail:3.8
authentication-tokens:1.4
basic-branch-build-strategies:1.3.2
blueocean:1.25.0
blueocean-autofavorite:1.2.4
blueocean-bitbucket-pipeline:1.25.0
blueocean-commons:1.25.0
blueocean-config:1.25.0
blueocean-core-js:1.25.0
blueocean-dashboard:1.25.0
blueocean-display-url:2.4.1
blueocean-events:1.25.0
blueocean-git-pipeline:1.25.0
blueocean-github-pipeline:1.25.0
blueocean-i18n:1.25.0
blueocean-jira:1.25.0
blueocean-jwt:1.25.0
blueocean-personalization:1.25.0
blueocean-pipeline-api-impl:1.25.0
blueocean-pipeline-editor:1.25.0
blueocean-pipeline-scm-api:1.25.0
blueocean-rest:1.25.0
blueocean-rest-impl:1.25.0
blueocean-web:1.25.0
bootstrap4-api:4.6.0-3
bootstrap5-api:5.1.1-1
bouncycastle-api:2.20
branch-api:2.7.0
build-timeout:1.20
caffeine-api:2.9.2-29.v717aac953ff3
change-assembly-version-plugin:1.10
checks-api:1.7.2
cloudbees-bitbucket-branch-source:2.9.11
cloudbees-folder:6.16
command-launcher:1.5
config-file-provider:3.8.0
copyartifact:1.46.1
credentials:2.5
credentials-binding:1.27
discard-old-build:1.05
display-url-api:2.3.5
docker-commons:1.17
docker-workflow:1.25
durable-task:1.39
echarts-api:5.1.2-11
email-ext:2.81
external-monitor-job:1.7
favorite:2.3.2
font-awesome-api:5.15.4-1
git:4.8.2
git-client:3.9.0
git-server:1.9
github:1.32.0
github-api:1.122
github-branch-source:2.9.3
gradle:1.36
handlebars:1.1.1
handy-uri-templates-2-api:2.1.8-1.0
htmlpublisher:1.25
jackson2-api:2.12.4
javadoc:1.6
jdk-tool:1.4
jenkins-design-language:1.25.0
jira:3.1.3
job-restrictions:0.8
jobConfigHistory:2.26
jquery:1.12.4-1
jquery-detached:1.2.1
jquery3-api:3.6.0-2
jsch:0.1.55.2
junit:1.53
ldap:2.0
locale:1.4
lockable-resources:2.10
mailer:1.34
mapdb-api:1.0.9.0
matrix-auth:2.6.6
matrix-project:1.18
mercurial:2.12
momentjs:1.1.1
msbuild:1.29
mstest:1.0.0
next-build-number:1.6
nunit:0.27
okhttp-api:3.14.9
pam-auth:1.6
pipeline-build-step:2.15
pipeline-github-lib:1.0
pipeline-graph-analysis:1.10
pipeline-input-step:2.12
pipeline-milestone-step:1.3.2
pipeline-model-api:1.9.2
pipeline-model-definition:1.9.2
pipeline-model-extensions:1.9.2
pipeline-rest-api:2.19
pipeline-stage-step:2.5
pipeline-stage-tags-metadata:1.9.2
pipeline-stage-view:2.19
pipeline-utility-steps:2.6.1
plain-credentials:1.7
plugin-util-api:2.5.0
popper-api:1.16.1-2
popper2-api:2.10.1-1
powershell:1.4
publish-over:0.22
publish-over-ssh:1.22
pubsub-light:1.16
purge-build-queue-plugin:1.0
purge-job-history:1.6
resource-disposer:0.14
role-strategy:3.1.1
scm-api:2.6.5
script-security:1.78
slack:2.48
snakeyaml-api:1.29.1
sonar:2.13.1
sse-gateway:1.24
ssh:2.6.1
ssh-credentials:1.18.1
ssh-slaves:1.30.2
sshd:3.0.3
structs:1.23
subversion:2.14.0
tfs:5.157.1
timestamper:1.11.8
token-macro:2.13
trilead-api:1.0.13
variant:1.4
windows-slaves:1.7
workflow-aggregator:2.6
workflow-api:2.46
workflow-basic-steps:2.23
workflow-cps:2.94
workflow-cps-global-lib:2.21
workflow-durable-task-step:2.40
workflow-job:2.41
workflow-multibranch:2.26
workflow-scm-step:2.13
workflow-step-api:2.24
workflow-support:3.8
ws-cleanup:0.38
Linux

Reproduction steps

When setting up the source plugin, the webhooks are created in bitbucket, but the endpoint ({jenkins_host}/bitbucket-scmsource-hook/notify) in Jenkins is not accessible.

Also when I call it myself I also get the same result.

Results

Expected result:

Succesful webhook.

Actual result: bitbucket jenkins webhook

KalleOlaviNiemitalo commented 3 years ago

Server: Microsoft-HTTPAPI/2.0 in the HTTP response indicates it came from a Microsoft Windows server. However, you wrote your Jenkins controller is on Linux. Please check the server name and DNS.

hayo0o0o0 commented 3 years ago

Thank you, that directed me to the correct location @KalleOlaviNiemitalo.

Closing this