-
Notifications
You must be signed in to change notification settings - Fork 353
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
Authentication failure using <user>/<password or personal access token> in Bitbucket server #904
Comments
Please report the actual credentials type are you using (ssh, oauth2, app password)? |
Do you have cache enabled (maybe branch list was cached)? |
credentials type is user/password, while password is actually an http access token with admin rights on the project. no caching of the branch list as far as I can tell |
I tried with 906.vedf430cb_4481 now, same. |
Do you mean that you have configured an OAuth2 credential with secretId and secretPassword as a Username/Password Jenkins credentials or in the Jenkins credential you have setup as user x-auth-token and as password <token value> ? The first one works and follow the documentation, the second one no. We have configured OAuth2 for bibtucket cloud and scan/git clone works so I something is missing to reproduce this issue. |
Changes in release https://github.com/jenkinsci/bitbucket-branch-source-plugin/releases/tag/895.v15dc41668f03 are:
|
Clonse since this is not a bug but a requested feature (I know from this issue that it worked in some way before 886). |
please reopen! I think you mixed sth. up. this IS a bug, not a feature request. reason: |
Ok, the cause than could that is it catched to be a BitbucketAccessTokenAuthenticator where only the token is moved forward without username. From the log it's impossible to understand which kind of authenticator is used |
To rule out token handling I tried with plain user / password (so essentially replace the token by the REAL password), and it didn't work either. So this has nothing to do with HTTP access token! (I also changed the title) |
The AppPassword for bitcucket cloud works and it's a username/password couple credentials in place of real user/password. In Bitbucket cloud REST API does not allow the use of real user/password. |
plz note the update in my Environment above. I use bitbucket data center 8.19.9 (LTS) |
just to narrow down the possibly causing changes: first broken version was 887.va_d359b_3d2d8d |
Jenkins and plugins versions report
Environment
This is a Multibranch Pipeline Events log. As can be seen, authentication works for listing the branches. But the git fetch does not.
What Operating System are you using (both controller, and any agents involved in the problem)?
Rocky Linux 9
Reproduction steps
see log
Expected Results
git fetch should be authenticated
Actual Results
it is not
Anything else?
No response
Are you interested in contributing a fix?
No response
The text was updated successfully, but these errors were encountered: