-
Bug
-
Resolution: Not A Defect
-
Minor
-
None
-
Atlassian Bitbucket v4.10.0
Jenkins 2.73
BitBucket Branch Source 2.2.3
All pipeline plugins latest as of today.
When I save a Multibranch Pipeline job configuration with Branch Source set to BitBucket, I see the following in the logs. See below for configuration screeshot.
It appears as if the plugin makes a request to /rest/webhook instead of /rest/api ?
Oct 20, 2017 7:47:14 AM jenkins.branch.MultiBranchProject$BranchIndexing run INFO: test-bitbucket-multibranch-tabinf #20171020.074711 branch indexing action completed: SUCCESS in 3 sec 2017/10/20 10:18:497 - /job/test-bitbucket-multibranch-tabinf/configSubmit by akom Oct 20, 2017 7:47:19 AM com.cloudbees.jenkins.plugins.bitbucket.hooks.WebhookAutoRegisterListener$1 doRun WARNING: Could not register hooks for test-bitbucket-multibranch-tabinf java.io.FileNotFoundException: URL: /rest/webhook/1.0/projects/TABINF/repos/testrepo/configurations at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getRequest(BitbucketServerAPIClient.java:511) at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getWebHooks(BitbucketServerAPIClient.java:414) at com.cloudbees.jenkins.plugins.bitbucket.hooks.WebhookAutoRegisterListener.registerHooks(WebhookAutoRegisterListener.java:151) at com.cloudbees.jenkins.plugins.bitbucket.hooks.WebhookAutoRegisterListener.access$000(WebhookAutoRegisterListener.java:64) at com.cloudbees.jenkins.plugins.bitbucket.hooks.WebhookAutoRegisterListener$1.doRun(WebhookAutoRegisterListener.java:118) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:51) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:748) 2017/10/20 10:22:014 - job/test-bitbucket-multibranch-tabinf/job/master/ #2 Branch indexing Oct 20, 2017 7:47:22 AM jenkins.branch.WorkspaceLocatorImpl locate WARNING: JENKINS-34564 path sanitization ineffective when using legacy Workspace Root Directory ‘${ITEM_ROOTDIR}/workspace’; switch to ${JENKINS_HOME}/workspace/${ITEM_FULLNAME} as in JENKINS-8446 / JENKINS-21942 Oct 20, 2017 7:47:23 AM org.jenkinsci.plugins.workflow.job.WorkflowRun finish