Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

migrating from Bitbucket App Passwords to API Tokens

Karandeep Singh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 19, 2026

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/'

1 answer

0 votes
Arkadiusz Wroblewski
Community Champion
June 19, 2026

Hello @Karandeep Singh 

Your token are Scoped or not ?

Screenshot_20260619-195403.png

Best,

Arkadiusz 🤠 

Karandeep Singh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 22, 2026

Hi Arkadiusz

Yes I tried with scoped tokens as well, but I'm still getting same issue

Best,
Karandeep

Vipul Reddy
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 23, 2026

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.comSecurityCreate 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!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events