How to configure Jenkins to access Bitbucket Cloud with 2FA?

Aiden_han
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!
May 30, 2023

Hi, I have a question about configuring Jenkins to access Bitbucket Cloud with 2FA(Two Step Verification).

When I applied 2FA to our workspace using Access controls, Jenkins couldn't access the workspace.

What should I do in this case?

Thanks in advance!

1 answer

1 accepted

1 vote
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 31, 2023

Hi @Aiden_han and welcome to the community!

How is authentication for Bitbucket Cloud configured in Jenkins? Are you using the credentials of a Bitbucket account that has access to your workspace's repos?

If so, and if "Require two-step verification" is enabled for a workspace, then 2FA needs to be configured for the Bitbucket account that is used in Jenkins.

If the configuration in Jenkins allows it, you could also look into using a workspace access token instead:

Kind regards,
Theodora

Suggest an answer

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

Atlassian Community Events