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

Basic authentication does not work #197

Open
jdrbc opened this issue Apr 5, 2019 · 2 comments
Open

Basic authentication does not work #197

jdrbc opened this issue Apr 5, 2019 · 2 comments

Comments

@jdrbc
Copy link

jdrbc commented Apr 5, 2019

I'm getting this error when using app password. Happens whether I fill the un/pw form fields for this plugin or select a Jenkins managed credential. Jenkins has a successfully connection to bitbucket with other plugins.

SCM changes detected in [my-project-name] - STAGE 2019.05. Triggering #77 Apr 05, 2019 12:03:08 PM INFO org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme basic authentication scheme selected Apr 05, 2019 12:03:08 PM INFO org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge Failure authenticating with BASIC 'Bitbucket.org HTTP'@bitbucket.org:443 Apr 05, 2019 12:03:08 PM WARNING bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.bitbucket.ApiClient send Response status: HTTP/1.1 401 Unauthorized URI: https://bitbucket.org/my-company-name/my-project-core/rest/api/1.0/projects/my-company-name/repos/my-project-core/pull-requests/ Apr 05, 2019 12:03:08 PM WARNING bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.bitbucket.ApiClient send Apr 05, 2019 12:03:08 PM WARNING bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.bitbucket.server.ServerApiClient getAllValues invalid response. java.lang.NullPointerException at java.io.StringReader.<init>(Unknown Source) at org.codehaus.jackson.JsonFactory.createJsonParser(JsonFactory.java:636) at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1877) at bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.bitbucket.ApiClient.parse(ApiClient.java:211) at bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.bitbucket.server.ServerApiClient.getAllValues(ServerApiClient.java:122) at bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.bitbucket.server.ServerApiClient.getPullRequests(ServerApiClient.java:37) at bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository.getTargetPullRequests(BitbucketRepository.java:117) at bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketPullRequestsBuilder.run(BitbucketPullRequestsBuilder.java:37) at bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildTrigger$TriggerRunnable.run(BitbucketBuildTrigger.java:402) 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)

@takahiko-okada
Copy link

This is still happening against Bitbucket Cloud.

@takahiko-okada
Copy link

Switched to using Jenkins credentials, but does not work.

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

2 participants