Hi Atlassian Support,
We are migrating from Bitbucket App Passwords to API Tokens as required by the CHANGE-3222 deprecation deadline (July 28, 2026).
We are trying to authenticate Jenkins with Bitbucket over HTTPS using a Personal API Token but keep getting authentication failures.
Setup details:
- Jenkins Git Plugin (latest)
- Repository URL: https://bitbucket.org/SymTrain/jenkins-pipelines.git
- Credential type: Username with password
- Username tried: x-bitbucket-api-token-auth (as per Atlassian docs)
- Username tried: Atlassian account email
- Username tried: Bitbucket username
- Password: Personal API Token generated from id.atlassian.com
Error received:
fatal: Authentication failed for 'https://bitbucket.org/SymTrain/jenkins-pipelines.git/'
Hi Arkadiusz
Yes I tried with scoped tokens as well, but I'm still getting same issue
Best,
Karandeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Karandeep,
Thanks for the comprehensive details, and the update to Arkadiusz. Just so that we have covered everything, could you please confirm if you're performing the following:
1. Create the correct token type:
Go to id.atlassian.com → Security → Create and manage API tokens
Select "Create API token with scopes" (not the classic "Create API token")
Name the token and set an expiry
Select Bitbucket as the app
Grant the required scopes (add anything else you require):
read:repository:bitbucket — for cloning/fetching
write:repository:bitbucket — for pushing
2. Configure Jenkins credentials:
Kind: Username with password
Username: x-bitbucket-api-token-auth
Password: The new scoped API token
Can you please try the steps above and let us know the outcome?
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.