Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue configuring Bitbucket Branch Source Plugin #10

Open
ericfrancis opened this issue May 17, 2017 · 6 comments
Open

Issue configuring Bitbucket Branch Source Plugin #10

ericfrancis opened this issue May 17, 2017 · 6 comments

Comments

@ericfrancis
Copy link

Duplicate SO Question: https://stackoverflow.com/questions/44029404/issue-configuring-bitbucket-branch-source-plugin

I've configured the plugin with scanning credentials.

Found branches with a Jenkinsfile.

However, I'm getting the error below and am not sure how to proceed.

[Bitbucket] Notifying commit build result
[Bitbucket] Notifying commit build result
ERROR: Could not send notifications
com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRequestException: HTTP request error. Status: 400: Bad Request.
{"type": "error", "error": {"fields": {"url": ["Enter a valid URL."]}, "message": "Bad request"}}
jenkins bitbucket jenkins-plugins jenkins-pipeline
@spotlesscoder
Copy link

Is the error from the job output or the jenkins.err.log?

@spotlesscoder
Copy link

spotlesscoder commented Jun 26, 2017

Maybe it is a proxy related issue. In my jenkins.err.log, I found the following strange behaviour:

(Masked : and organizationname)

Jun 26, 2017 3:04:57 PM org.apache.commons.httpclient.HttpMethodDirector authenticateProxy
WARNING: Required proxy credentials not available for BASIC <any realm>@<IP>:<PORT>
Jun 26, 2017 3:04:57 PM org.apache.commons.httpclient.HttpMethodDirector authenticateProxy
WARNING: Preemptive authentication requested but no default proxy credentials available
Jun 26, 2017 3:04:57 PM org.apache.commons.httpclient.HttpMethodBase readResponseBody
INFO: Response content length is not known
Jun 26, 2017 3:04:58 PM org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ConnectionPool freeConnection
SEVERE: Host connection pool not found, hostConfig=HostConfiguration[host=https://bitbucket.org, proxyHost=http://<IP>:<PORT>]
Jun 26, 2017 3:04:58 PM org.apache.commons.httpclient.HttpMethodDirector authenticateProxy
WARNING: Required proxy credentials not available for BASIC <any realm>@<IP>:<PORT>
Jun 26, 2017 3:04:58 PM org.apache.commons.httpclient.HttpMethodDirector authenticateProxy
WARNING: Preemptive authentication requested but no default proxy credentials available
Jun 26, 2017 3:04:58 PM org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ConnectionPool freeConnection
SEVERE: Host connection pool not found, hostConfig=HostConfiguration[host=https://bitbucket.org, proxyHost=http://<IP>:<PORT>]
Jun 26, 2017 3:04:58 PM org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ConnectionPool freeConnection
SEVERE: Host connection pool not found, hostConfig=HostConfiguration[host=https://bitbucket.org, proxyHost=http://<IP>:<PORT>]
Jun 26, 2017 3:04:58 PM com.cloudbees.jenkins.plugins.bitbucket.hooks.WebhookAutoRegisterListener registerHooks
INFO: Registering hook for organizationname/csdummyproject
Jun 26, 2017 3:04:58 PM org.apache.commons.httpclient.HttpMethodDirector authenticateProxy
WARNING: Required proxy credentials not available for BASIC <any realm>@<IP>:<PORT>
Jun 26, 2017 3:04:58 PM org.apache.commons.httpclient.HttpMethodDirector authenticateProxy
WARNING: Preemptive authentication requested but no default proxy credentials available
Jun 26, 2017 3:04:58 PM org.apache.commons.httpclient.HttpMethodBase readResponseBody
INFO: Response content length is not known
Jun 26, 2017 3:04:58 PM org.apache.commons.httpclient.HttpMethodBase readResponseBody
INFO: Response content length is not known
Jun 26, 2017 3:04:58 PM org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ConnectionPool freeConnection
SEVERE: Host connection pool not found, hostConfig=HostConfiguration[host=https://bitbucket.org, proxyHost=http://<IP>:<PORT>]
Jun 26, 2017 3:04:58 PM jenkins.branch.MultiBranchProject$BranchIndexing run
INFO: playground/organizationname2/csdummyproject #20170626.150455 branch indexing action completed: SUCCESS in 2.5 sec
Jun 26, 2017 3:04:58 PM org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ConnectionPool freeConnection
SEVERE: Host connection pool not found, hostConfig=HostConfiguration[host=https://bitbucket.org, proxyHost=http://<IP>:<PORT>]
Jun 26, 2017 3:04:58 PM com.cloudbees.jenkins.plugins.bitbucket.hooks.WebhookAutoRegisterListener$1 doRun
WARNING: Could not register hooks for playground/organizationname2/csdummyproject
com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRequestException: HTTP request error. Status: 400: Bad Request.
{"type": "error", "error": {"fields": {"url": ["Invalid URL"]}, "message": "Bad request"}}
	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.postRequest(BitbucketCloudApiClient.java:636)
	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.postRequest(BitbucketCloudApiClient.java:661)
	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.registerCommitWebHook(BitbucketCloudApiClient.java:352)
	at com.cloudbees.jenkins.plugins.bitbucket.hooks.WebhookAutoRegisterListener.registerHooks(WebhookAutoRegisterListener.java:155)
	at com.cloudbees.jenkins.plugins.bitbucket.hooks.WebhookAutoRegisterListener.access$000(WebhookAutoRegisterListener.java:60)
	at com.cloudbees.jenkins.plugins.bitbucket.hooks.WebhookAutoRegisterListener$1.doRun(WebhookAutoRegisterListener.java:106)
	at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:50)
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

Howeever, using the GitHub Jenkins plugins for scanning an organization and building it's repos works very well on the same machine

@mariotacke
Copy link

@ericfrancis Did you ever figure out how to solve your problem? Running into the same thing right now.

Jenkins ver. 2.60.3
Bitbucket Branch Source Plugin: 2.2.7
Bitbucket Build Status Notifier Plugin: 1.3.3

@MaisUmGajo
Copy link

I have the same problem. Is there a solution ?

@kganger
Copy link

kganger commented Feb 7, 2018

Having the same problem

@sysunix
Copy link

sysunix commented Apr 11, 2019

Having the same problem
a response?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants