youngmon/atlassian-qna huggingface dataset:
Colleague can't receive verification code
Asked by Kristjan Jesih:

My colleague tries to log in via microsoft account, and the website redirects him to the verification page. He then tries to send / re-send the verification code to his email but doesn't receive any. We double checked the email so wrong email input should not be a problem.


Answers:
author: Patrik S
body: Hello [@Kristjan Jesih](/t5/user/viewprofilepage/user-id/5253279) and welcome to the Community!

By verification code you mean the 2-step verification code?

If your colleague has 2-step verification enabled on his Bitbucket or Atlassian account but does not have access to the 2SV device or the verification codes, they will need to trigger a 2SV reset. To request the recovery email through the login screen you will need to click on **Forgot code \> Send recovery e-mail when prompted for the 2SV code** .

The user will then receive a notification email that a reset process has started. After 24 hours the user will receive a second email with the actual 2SV reset link. The 24h delay is a necessary measure to protect our customers and their data from social engineering attempts and can't be bypassed.

Let me know in case you have any questions.

Thank you, [@Kristjan Jesih](/t5/user/viewprofilepage/user-id/5253279) !

Patrik S


Tags: bitbucket-cloud

cloud
Bitbucket REST API parameter "filterText" whole/exact word
Asked by Sebastien Ashby:

Hi,  

I am using the following Bitbucket REST API:

* <https://docs.atlassian.com/bitbucket-server/rest/7.21.0/bitbucket-rest.html>

Specifically:

* /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/branches

Said API has the following parameter:

* parameter : **filterText**
* value: **string**
* description: **the text to match on**

My problem is that the returned branches are those whose name CONTAINS the value of the "filterText" parameter.  
Whereas I seek to get only the branch whose name is EXACTLY the value of the "filterText" parameter.  

Please help.  

Thanks  

S.


Answers:
author: Sebastien Ashby
body: Hi,  

Answering my own question.  
API has the following parameter:

* parameter :**boostMatches**
* value:**boolean**
* description:**controls whether exact and prefix matches will be boosted to the top**

If an exact match is found, it will be the first element returned.


Tags: bitbucket-server

rest-api

server
Required Builds feature not working
Asked by Praveen Kumar Sankar:

Required builds merge check still failing after a successful build. I have referred this link "<https://confluence.atlassian.com/bitbucketserverkb/unable-to-add-jenkins-build-key-in-required-builds-merge-check-when-using-jenkins-bitbucket-server-data-center-integration-plugin-1114821164.html>" and configured the Bitbucket server integration plugin latest version in jenkins but still build key not listing as given in link. {#toc-hId--463116840}
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Answers:
author: Praveen Kumar Sankar
body: I found the resolution, it was due to wrong configuration in Jenkins .In Jenkins, i have configured Branch source plugin and Server integration plugin. In Jenkins pipeline ,under source we have to choose Bitbucket server for Bitbucket server integration plugin .But I have chosen Bitbucket in source.


Tags: bitbucket-server

server
Get the public ssh keys of a user
Asked by Stephanos Papanikolopoulos:

I'm looking for the equivalent of

<https://github.com/{username}.keys>

or <https://gitlab.com/{username}.keys>

to get the publish ssh keys for a bitbucket user, given their username.


Answers:
author: Julien P_
body: Hello [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) , I'd like to voice my support of this proposition.

In a GitOps approach, having this feature would help ensure that a team using BitBucket can consider BitBucket it as a source of truth for public ssh key management.

Not having this feature means currently that management of such keys cannot be done in BitBucket, unlike other SCMs.

It being a feature of GitHub, Gitlab, Gitea, and probably a lot of other Git servers, I think it should be considered by the BitBucket team as a standard feature to be implemented, ensuring that BitBucket can be on par with the competitors on this.

I've voted for the issue on Jira, and added myself to the watcher list.

Thank you!


author: Patrik S
body: Hello [@Stephanos Papanikolopoulos](/t5/user/viewprofilepage/user-id/5133466) and welcome to the Community!

Currently, it's only possible to list the public SSH keys of the **authenticated user** using the endpoint [List SSH Keys](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-ssh/#api-users-selected-user-ssh-keys-get) ,so I'm afraid you won't be able to get the public keys of a user other than the one who's authenticating the request.

I went ahead and raised a feature request to implement the ability to get a user's public SSH key by providing the username, which you can access using the following link :

* <https://jira.atlassian.com/browse/BCLOUD-22747>

I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with [this policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) in mind.

Thank you, [@Stephanos Papanikolopoulos](/t5/user/viewprofilepage/user-id/5133466) !

Patrik S


Tags: bitbucket-cloud

cloud
What's my username?
Asked by Alex Arias:

I'm trying to use the bitbucket http access token that was generated for a repo. I am not able to authenticate with the token. What is the username I'm supposed to use? I log into the system with my comany's SSO so I don't directly input a username.

My account settings page doesn't show anything with regards to a username.


Answers:
author: Christian Glockner
body: Hi Alex,

The token acts as a replacement for the password, but you can also use the token by specifying it in the Authentication header.   

<https://confluence.atlassian.com/bitbucketserver0721/http-access-tokens-1115665626.html> shows a few ways of doing that.

Cheers,  
Christian

Premier Support Engineer  
Atlassian

comments: author: Alex Arias
body: For some reason this only worked when I created the token for my user but it doesn't work when I create it for the repository. What would the user id be for the repository http access token?   
For the token I generated on my profile my username worked.


Tags: bitbucket-server

server
unable to enable pipeline setting
Asked by Ngurah Putra:

when I click enable button, the button become like this and the cursor changes into forbidden cursor, and when I refresh the page the button set into disable ![image.png](/t5/image/serverpage/image-id/264888i71DA48BF5ADC4A22/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Patrik S
body: Hello [@Ngurah Putra](/t5/user/viewprofilepage/user-id/5252630) and welcome to the Community!

In order to enable Pipelines, you will need first to enable the 2-factor authentication (2FA) in your bitbucket account. This was a change announced in July 2021 to prevent crypto mining abuse (see [Change to Pipelines due to crypto mining abuse](https://bitbucket.org/blog/changes-to-bitbucket-pipelines-due-to-crypto-mining-abuse) ).

You can setup 2FA for your Bitbucket account by navigating to [https://bitbucket.org](https://bitbucket.org/), log in with your account, and accessing the following link :

* <https://bitbucket.org/account/settings/two-step-verification/manage>

Once the 2FA is enabled, you should be able to enable pipelines in the repository.

Thank you, [@Ngurah Putra](/t5/user/viewprofilepage/user-id/5252630) !

Patrik S


Tags: bitbucket-cloud

cloud
I cannot view the commit details of my public repository without signing in
Asked by andresilvasantos:

Hello!

I just changed a repository from private to public and it's now available to everyone. All source code is available and commits are listed without problems.

But now, when I try to access a specific commit without authentication, a popup appears asking me to sign in.

Is this the expected behavior?

I think everything should be visible and accessible to anonymous users when changing a repository visibility to public.

Let me know if you need further details.

Thanks in advance!


Answers:
author: Theodora Boudale
body: Hi,

Thank you for reaching out. This is not expected behavior, the diff of a commit should be visible to anonymous users as well and there should be no prompt to sign in.

I went ahead and created a bug report in our issue tracker:

* <https://jira.atlassian.com/browse/BCLOUD-22749>

Our development team tracks bugs over there and will post an update on that issue when it is fixed. Please note though that we don't provide ETAs and bug fixing is implemented as per our policy [here](https://confluence.atlassian.com/support/atlassian-cloud-bug-fix-policy-206865884.html).

You can add yourself as a watcher (by selecting the **Start watching this issue** link in the bug report) if you'd like to get notified via email on updates. You can also select the link **This affects my team** to indicate you are affected by this issue.

If you have any further questions, please feel free to let me know.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How to add key for source tree after 2023/ 6/20?not success rotate host key before 6/20
Asked by KimZhang:

Cannot connect to bitbuket using old key? create new key and add in bitbuket also not work?how to fix it?thanks!


Answers:
author: Theodora Boudale
body: Hi [@KimZhang](/t5/user/viewprofilepage/user-id/3885764),

Please keep in mind that there is no requirement for end users to change the SSH keys they have set up for their account, workspace, or repos.

What you need to do is configure your SSH client to use either the ECDSA or the Ed25519 host key of Bitbucket Cloud, or the new RSA key. This is not related to the SSH keys you have set up for your account. The host key of a server (in this case, Bitbucket Cloud), is used to establish the authenticity of that server.

Please take a look at the following knowledge base article, in the section **Technical Questions** there are questions and answers for SourceTree for MAC and SourceTree for Windows:

* <https://confluence.atlassian.com/bbkb/bitbucket-cloud-ssh-host-key-rotation-faq-1235851234.html>

If you are still experiencing issues or if you have any questions, please feel free to let me know and also provide some details about

* the error you are seeing
* whether you are using SourceTree for Mac or for Windows
* in case it's SourceTree for Windows, which SSH client SourceTree is configured to use

Kind regards,  
Theodora

comments: author: KimZhang
body: Hi Theodora?thanks for help?


Tags: bitbucket-cloud

cloud
Missing Repo
Asked by Joseph Mirarchi:

Hi,

It's been several months since I used BitBucket at [https://bitbucket.org/\<workspace-id\>/](https://bitbucket.org/<workspace-id>/) and I got a brand new computer. I had a private hobby repo written earlier this year (2023) in Python. It's not the one from 2021 that is currently visible. The missing repo had several pull requests that I wrote and approved for myself just to track the workflow.

I logged in to clone the repo and discovered that I can't see it. Unfortunately, I don't have the code backed up in any other place (mea culpa - my backup didn't sync). In reading over community posts it looks like sometimes repos go dormant and need to be reset by staff.

Can anyone assist with this? There should definitely be some history with PRs and everything. I'm not even seeing it listed.

<br />

Thanks much.


Answers:
author: Theodora Boudale
body: Hi Joseph and welcome to the community!

Just a heads up, I removed the workspace URL from your post to protect your privacy.

Your Bitbucket Cloud account and your workspace are both active. Your workspace has a couple of repos, which you can see by visiting

* <https://bitbucket.org/workspace-id/workspace/repositories>

Replace **workspace-id** in the URL with the ID of your workspace.

If you don't see a repo listed there, then one of the following things might have happened:

**1.** The repo was deleted either by you or by another user with admin access.

The Support team may be able to help recover core repository content only, as long as the deletion happened within the last 7 days. We are unable to recover metadata or any content that was deleted past 7 days.

I checked our logs and I don't see any repository deletion events for your workspace in the last 7 days, so if the repo was indeed deleted, we cannot recover it.

Repository deletion events are shown in the workspace's Audit Log:

* <https://bitbucket.org/workspace-id/workspace/settings/auditlog>

Replace **workspace-id** in the URL with the ID of your workspace.

**2.** The repo was renamed by an admin.

**3.** The repo was transferred by an admin to a different workspace.

**4.** The repo belonged to a different workspace from the beginning and your access has been revoked.

If the repo was renamed only, it should still be available in your workspace's repos. If it was transferred or your access has been revoked, you would need to speak with the new admins to grant you access.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Request for Garbage Collection
Asked by Hans Huber:

Hello, I create a new branch at Bitbucket every month and delete the old one. In fact, I only have one branch at a time. Still, my repo keeps getting bigger, too big, although my code changes only minimally (always \~10MB). The repo now has a size of 2.5 GB. There can only ever be one branch with a maximum of 30 commits, i.e. a real production size of \~300MB, which will go back to 0 next month because I automatically delete the branch from the old month. After consulting the blog, docs, and forums at Bitbucket, I found that deleted branches aren't actually deleted, just flagged for deletion. To start a final deletion, a "garbage collection" is necessary. Locally that's not a problem. My local repo never gets bigger than 300MB. But in the Bitbucket backend I can't find a way to do this. But now I don't want to submit a request every month asking for a garbage collection. What options do I have to initiate a "git gc" in the Bitbucket repo itself? Via ssh? Thanks and greetings! Hans


Answers:
author: Theodora Boudale
body: Hi Hans and welcome to the community!

I'm afraid that there is no way for end users to trigger a git gc for their remote repos at the moment.

We have a feature request about this that you can vote for and watch here:

* <https://jira.atlassian.com/browse/BCLOUD-11593>

In the meantime, if you would like a git gc on your remote repo, you will need to raise a request here in the community or in our [support portal](https://support.atlassian.com/contact/#/) if your workspace is on a paid plan.

I went ahead and triggered a git gc for your repo and its size has been reduced.

Please feel free to reach out if you have any questions.

Kind regards,  
Theodora

comments: author: Hans Huber
body: Thank you Theodora!


author: Theodora Boudale
body: You are very welcome, Hans. Please feel free to reach out if you ever need anything else!


Tags: atl-rvw

bitbucket-cloud

cloud
Trying to make npm run build on react
Asked by Agustin Ramos Peruzzo:

npm run build  
\> unified_app@3.0.4 build /opt/atlassian/pipelines/agent/build  
\> react-scripts build  
Creating an optimized production build...  
One of your dependencies, babel-preset-react-app, is importing the  
"@babel/plugin-proposal-private-property-in-object" package without  
declaring it in its dependencies. This is currently working because  
"@babel/plugin-proposal-private-property-in-object" is already in your  
node_modules folder for unrelated reasons, but it may break at any time.  
babel-preset-react-app is part of the create-react-app project, which  
is not maintianed anymore. It is thus unlikely that this bug will  
ever be fixed. Add "@babel/plugin-proposal-private-property-in-object" to  
your devDependencies to work around this error. This will make this message  
go away.  
Treating warnings as errors because process.env.CI = true.  
Most CI servers set it automatically.  
Failed to compile.  
/static/js/main.6be8baac.js is 8.89 MB, and won't be precached. Configure maximumFileSizeToCacheInBytes to change this limit.  
npm ERR! code ELIFECYCLE  
npm ERR! errno 1  
npm ERR! unified_app@3.0.4 build: \`react-scripts build\`  
npm ERR! Exit status 1  
npm ERR!  
npm ERR! Failed at the unified_app@3.0.4 build script.  
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.  
npm ERR! A complete log of this run can be found in:  
npm ERR! /root/.npm/_logs/2023-06-24T11_47_07_014Z-debug.log


Answers:
author: Agustin Ramos Peruzzo
body: I just resolved the issue, just putting CI=false in the beginning of the command


Tags: bitbucket-cloud

cloud
Cannot connect XCode to Bitbucket Cloud
Asked by malachi frazier:

Hello, I have just created a Bitbucket account as my team and I would like to use Bitbucket cloud as our git hosting solution for a mobile application. I am able to login to Bitbucket in Xcode but am unable to create a remote repository of the Xcode project as I get the error message: "Failed to load repository owners". I have already logged in on Xcode using an app password and I selected every available checkbox for the app password.


Answers:
author: Mohammed Salim
body: me 2 bruh I didn't find answer yet


author: Cl?ment Cardonnel
body: I have the exact same issue, as described per your post. Every checkbox selected as well. I also have 2FA enabled, if this is of any importance. ?

Xcode version is 14.3.1.


Tags: bitbucket-cloud

cloud
Share Pipeline Runners across different repositories in the same project
Asked by Egor.Guz:

we have multiple repositories inside our project, and we want all these repositories to use the same self-hosted runner. is it possible?

--

Egor


Answers:
author: Ben
body: Hi Egor,

Yes - this is possible if you configure it at the workspace level (workspace runner) from **Workspace Settings \> Pipelines \> Runners**.

Configuring the runner here will mean that it is accessible from all repositories within the workspace.

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Christian Wehrenfennig
body: Our workspace is quite large and I'd rather not share runners across the entire workspace. Any chance these can be shared on the project level?


author: Ben
body: Hi [@Christian Wehrenfennig](/t5/user/viewprofilepage/user-id/1525012)

Unfortunately, this is not a feature that exists yet. I have raised a feature request on your behalf to implement this as I believe it would be useful to configure these at the project level:

* <https://jira.atlassian.com/browse/BCLOUD-22772>

Feel free to **"Watch"** this to receive future updates related to it and "**Vote"** for it to [improve its visibility](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) in regard to customer demand.

Cheers!

- Ben (Bitbucket Cloud Support)


author: Christian Wehrenfennig
body: Thanks, Ben. Much appreciated.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
How to Configure SourceTree on windows to use SSH authentication to connect to GitHub Enterprises
Asked by Navneet Kumar Jamidar:

Hi,

Recently our organization have stopped login into Github using username/password. Now it requires login through SAML.

I tried the way to connect SourceTree using SSH. I this right way? I am still not able to connect to our Orgs GitHub.

How do I use SourceTree to connect through SAML.


Answers:
author: bgannin
body: Hi [@Navneet Kumar Jamidar](/t5/user/viewprofilepage/user-id/3207727),

There isn't any explicit support for SAML workflows and this isn't a tested workflow for us currently. Sourcetree communicates over REST to GitHub for access to repository listings using either OAuth or Basic Auth (user/password.) Please file a ticket ([Windows](https://jira.atlassian.com/browse/SRCTREEWIN), [Mac](https://jira.atlassian.com/browse/SRCTREE)) with details or vote on an existing ticket so we can gauge demand.

Cheers,

Brian Ganninger  
Principal Developer, Sourcetree


Tags: saml
How do I specify a tag message when adding a new GIT tag?
Asked by Frank Zerangue:

SourceTree 3.1.2 for macOS.


Answers:
author: bgannin
body: Hi [@Frank Zerangue](/t5/user/viewprofilepage/user-id/3130546),

There isn't a way to do so from the Sourcetree UI currently. Please vote on an existing ticket or file a new one in our [public tracker](https://jira.atlassian.com/browse/SRCTREE) as that allows all users to provide feedback and helps us prioritize for future updates.

Brian Ganninger  
Principal Developer, Sourcetree
I reversed my first commit to a new repo...what do I do now?
Asked by nwalia:

Hi everyone, I'm fairly new to Sourcetree and Git, here's my situation:

* I created a new repo
* I committed too many files in my first commit
* I reversed my commit

I definitely don't want to mess anything up or lose any of my files. I'm just wondering how I can get back to the file status section and select all my files again (this time ignoring all the files I don't need committed)

Thanks!


Answers:
author: Mike Corsaro
body: Hello! If you're new to Sourcetree and Git, then I'd highly recommend checking out some of the getting started guides:

* [Learn Bitbucket with Sourcetree](https://confluence.atlassian.com/bitbucket/tutorial-learn-bitbucket-with-sourcetree-760120235.html) (if you're using GitHub it's very similar -- but just replace the bitbucket steps with github)
* [Github and Sourcetree guide](https://github.com/GSoft-SharePoint/Dynamite/wiki/Git-step-by-step:-Part-1) (this one is a little out-of-date but the concepts are the same)
* [A more general git guide is also available here.](https://www.atlassian.com/git/tutorials/syncing) Concepts such as "pull" and "push" are one-to-one with the buttons in Sourcetree


Tags: git
Turn off numbers displaying in tabs
Asked by Jack_Banh:

After updating to SourceTree 3.1.3 for Windows, I'm seeing numbers in the tab titles showing me how many commits I'm ahead and behind by. How do I turn this off? I work on very active repos and this information is too much of a distraction.

I have **unchecked** the setting that says "Show ahead and behind indications in tabs" and closed all my existing tabs and closed SourceTree and restarted everything anew but I still see the numbers.


Answers:
author: Mike Corsaro
body: Hello! This is a known issue in the current version of Sourcetree for Windows. It's currently fixed on our end and we'll be testing the next release in the upcoming weeks.

Sorry for the inconvenience!