youngmon/atlassian-qna huggingface dataset:
My public SSH key
Asked by HAPXu3:

I cannot add my SSH key to my account because of this: "Someone has already added that key as an access key to a repository."

I have checked all the places but this key is not associated to none of the repositories nor users I know of.

I have tried to SSH bitbucket.org, but is does not say any details:

ssh -T git@bitbucket.org  
authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled


Answers:
author: Nic Brough -Adaptavist-
body: There's no easy way to work this out because the keys that belong to other accounts should not be shared, so it's not easy to search.

If you shared the key with someone, you should know who. If you were given the key by someone, then you'll need to ask them.

If you have no luck chasing it down, you can raise a support request with Atlassian, and they can search out the key for you and hence identify the account you shared it with.

If you don't want to spend ages chasing down the share, then you can (and should) create a new key for your account and use that instead.

comments: author: HAPXu3
body: Thanks a lot for the prompt reply


Tags: bitbucket-cloud

cloud
want to trigger a jenkins job via bitbucket pipeline but getting 403 error
Asked by Muhammad Ahtisham Ul Haq:

mine Jenkins server is running on AWS and not available from everywhere only available to access from Office IP. I generated a token from going to the user setting in Jenkins and used that token in Bitbucket Pipeline to trigger the Jenkins pipeline. But I am getting a 403 error. I try to allow 443 or 80 ports from anywhere but still no luck. I know I am missing something but... i used pipe <https://bitbucket.org/atlassian/jenkins-job-trigger/src/master/>


Answers:
author: Ben
body: Hi Muhammad,

Welcome to the Bitbucket Cloud Community! :)

The error which you have mentioned 403 can occur for a number of reasons, however - given that you are running your server on AWS, the most likely cause is due to IP whitelisting.

Please refer to the following documentation below and ensure the relevant IP's are whitelisted on AWS to allow Pipelines to interface with the service:  
<https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/>

To test the actual IP address that your build is using, you can add the following command to your build step - this should match one of the IP ranges specified above:

```
curl http://checkip.amazonaws.com/
```

Please try to modify your whitelist and run the build again, let me know how this goes.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

jenkins
Merge strategy - Ask user if it is intentional to not squash the commits in a PR
Asked by Johan Stridkvist:

Is there a way to ask the user if it is intentional that the PR contains more than one commit when merging? Like a check-box: "I am aware that my PR contains several commits, but I prefer to not squash"

I find documentation for the different merge strategies here: <https://support.atlassian.com/bitbucket-cloud/docs/suggest-or-require-checks-before-a-merge/> , but it does not mention the use-case above.


Answers:
author: Christian Glockner
body: Hi Johan,

This isn't something that's possible out of the box, but may be achievable with a custom app.

Cheers,

Christian

Premier Support Engineer

Atlassian


Tags: bitbucket-server

server
why can't I move this repo to another project?
Asked by jmccal:

This worked yesterday with another repo that had mostly identical properties, but for this repo, the save button generates a malformed request, and triggers a nonsensical validation warning. It is a private repo, attempting to move from a public project to a private project.

![Screen Shot 2022-08-10 at 5.10.24 pm.png](https://community.atlassian.com/t5/image/serverpage/image-id/210376iCC587FB47ADFB581/image-size/large?v=v2&px=999 "Screen Shot 2022-08-10 at 5.10.24 pm.png")


Answers:
author: Ben
body: G'day!

Just to confirm - you are changing the project for the repository within the same workspace?

I have tested this on my end and was unable to reproduce the issue - I have a private repository within a public project and can seamlessly switch through the various projects and save at the end without an error message.

Are you able to clear your browser cache/attempt this in a different browser (or in Incognito mode if using Chrome)?

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: jmccal
body: Correct, yes. Both projects and the repo are in the same workspace.

Tried a different browser. Good suggestion, but unfortunately the result is the same.


author: Ben
body: Hi again,

I've just raised a support ticket on your behalf - you should receive an email to the email address connected to your workspace shortly :)

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
I am unable to login to bitbucket
Asked by Anitha Thangakrishnan:

Bitbucket is unable to reset the password for your account because it is managed by a read-only external directory. Please contact your administrator to change your password.


Answers:
author: Nic Brough -Adaptavist-
body: This is exactly what it says it is, your Bitbucket account is managed in an external directory (Okta, LDAP, AD etc), so you can't change the password in Bitbucket, you need to do it in that directory.

You'll need to talk to your user administrators (not your Bitbucket admins, although they should know who your user administrators are, or where your reset processes are docuemented)
How can I unable gsuit SSO while using it as a ID provider
Asked by louis.kim:

I am trying to set two factor authorization with Atlassian Access. But every user who is connected by Gsuit ID provider can log-in whit Gmail Account after I set domain as Gsuit

How can I force them to log in only with Atlassian account while connecting by Gsuite.

\* or Are there any other ways to use Atlassian Access without domain set? In this case, I could disconnect Gsuit and force them to use two factor authorization.

\* I don't want to use Gsuit's two factor authorization.


Answers:
author: Ben
body: Hey Louis,

Unfortunately, at present - once you have claimed a domain and set GSuite as your SSO provider - any email accounts which use the GSuite will be forced to log in through GSuite as this is your chosen SSO provider.

If you have 2FA setup on the Atlassian Account, you can further enforce 2FA on the Bitbucket Cloud workspace via **Workspace Settings \> Access Controls \> Require two-step verification** option.

If you have any further queries specifically related to Atlassian Access, I will need to log a ticket with our Premium Cloud Support team (PCS) whom handle queries specifically related to this product - you will receive an email once this ticket has been logged and can correspond from there.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: 2-factor-authentication

access

bitbucket-cloud

cloud
Cannot find / checkout remote branch after delete
Asked by Gavin Baumanis:

I (a long time ago) deleted a branch via the BitBucket Cloud Web page / app.  

A remote team member (junior / new developer-in-training) was on leave - but now is back and has been committing and pushing code changes to the deleted branch.  

(They do not have the skills / code / project oversight to do the merging.   
I did think that I would just get them to switch to the new branch and merge in all their changes into it. But this is beyond their current skillset)   

So I need to be able to checkout the remote branch to my machine, so that I can do the required merge(s) to get the new "main" brain up to date with his changes.

I have the remote path and the SHA of the last commit he pushed and tried the following;  

```
get fetch
git checkout -b origin/theDeletedPath <the commitSHA>
```

But I get an error that I can't resolve:

```
fatal: reference is not a tree: <the commitSHA>
```

The branch I want to recover does not appear in BitBucket Cloud (I have ensured that I am looking for ALL branches - not just active.

I have tried;  
git branch -a -v  

The latest commit/push to the deleted branch (unsurprisingly) does NOT appear in the commits for the repo, either.  

I'd really appreciate any thoughts you might have.  

Thanks!


Answers:
author: Ben
body: Hey Gavin,

If the remote branch has been deleted - you will not be able to push to the remote branch from your local.

I would suggest attempting to locate the local branch on the user's machine by running the **git branch** command to list only local branches.

Once this has been performed, you can then run a **git checkout** command to switch to the local branch and then push this to remote - once you push, this will create the **origin/theDeletedPath** linkage that you are expecting to see (if the branch name is different, you can rename the branch with **git branch -m old_name new_name**before pushing)

Unfortunately - if this data is lost and there is no local backup, our Cloud backups include the last 7 days of data in warm storage and any older is not easily recoverable.

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
I'm unable to login to my work account
Asked by Antonio Chilelli:

I have access to Jira and Confluence but bitbucket keeps saying the user doesn't exist or my password may be wrong


Answers:
author: Eugenio Onofre
body: Hello [@Antonio Chilelli](/t5/user/viewprofilepage/user-id/5004677)  
Welcome to the Atlassian Community!

Is your company using Single Sign On? I would strongly suggest you get in touch with the admin in order to see if your account is still active or you need to be onboarded on the system again.

Regards,  
Eugenio
course Version Control with GIT: error in lab Push to a Remote Repository
Asked by Steve G:

When you try to push to the remote repository, you get an error:

remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.

remote: See our community post for more details: <https://atlassian.community/t5/x/x/ba-p/1948231>

remote: App passwords are recommended for most use cases and can be created in your Personal settings:

\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

Can you update the class notes as to how to do this now that Bitbucket Cloud stopped supporting account passwords?


Answers:
author: Mateus T
body: Hi [@Steve G](/t5/user/viewprofilepage/user-id/5004590),

Welcome to the Atlassian Community!

Since Atlassian has revoked the usage of basic passwords in order to increase the security of accounts in general, Git operations can still be made through HTTPS protocols using [App Passwords](https://support.atlassian.com/bitbucket-cloud/docs/create-an-app-password/).

You can find the detailed steps on how to create one in the documentation linked above. Once you create one, just use it as you would with your basic password for authentication with Git.

Alternatively, you can also switch to SSH protocols. The detailed steps on how to set up an SSH key can be found in the following documentation:

* [Set up an SSH key](https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/)

Cheers,

Mateus T


Tags: bitbucket-cloud

cloud
Getting Someone has already added that SSH key to another account.
Asked by William Tan:

I'm trying to add my access key to bitbucket but getting the error above

When I run \`ssh -Ti jenkins_key git@bitbucket.org\`,

I got the below response

authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled

Is there a way for me to know which account which account is using the ssh key?


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

There's no easy way to work this out because the keys that belong to other accounts should not be shared.

If you shared the key with someone, you should know who. If you were given the key by someone, then you'll need to ask them.

If you have no luck chasing it down, you can raise a support request with Atlassian, and they can search out the key for you and hence identify the account you shared it with.

If you don't want to spend ages chasing down the share, then you can (and should) create a new key for your account and use that instead.


Tags: bitbucket-cloud

cloud
Problems connecting Azure DevOps to BitBucket Cloud
Asked by Jon Starbird:

Anyone have any success setting up Azure DevOps pipeline to connect to BitBucket Cloud?

We can get it connected to see list of repos using grant access or basic auth with app password but once you select a particular repo it fails with:

Unable to get the path contents from the Bitbucket repository 'workspace/reponame' for the branch or source version 'master' and path ''. It is possible the specified path is a file. Error from Bitbucket: Forbidden

Permissions are set correctly.

Also tried to use oauth consumer but was unable to find the proper callback url for azure devops anywhere on the net.

I know this may be Azure DevOps issue but since it's to use BitBucket Cloud I wanted to post here in case someone else has hit this same issue before.


Answers:
author: Adam HerrNeckar
body: PROBLEM: I faced a similar issue "Unable to get the path contents from the Bitbucket repository...Request timed out after 5000ms" when creating a pipeline in ADO. This was **after** using the same \[valid\] service connection to BitBucket to create a pipeline for a different repository *in the same parent workspace and project*.

WORKAROUND: I was able to bypass the error by creating a stub file for "azure-pipelines.yml" in the default branch of the target BitBucket repository.


author: ovroman
body: We are facing the same issue.  

I had to set-up pipelines for two repositories.  

For the first one, no issue at all.  

For the second one, I had the same error message.   
I found one comment on another thread :  
[Please add a Note to suggest not adding big binary... (atlassian.com)](https://community.atlassian.com/t5/Bitbucket-discussions/Please-add-a-Note-to-suggest-not-adding-big-binary-files-into/td-p/1603066)  

It seems to be linked with the fact the repository contains binary files, making the scan impossible.  

Already tried the following workaround; create the pipeline with Azure DevOps REST API. But bitbucket pipeline are not supported with this approach.  

The last solution is to change repository host service (to a concurrent one...)


author: Paul Hicks
body: Yes, we have these working, with both OAuth2 (grant) and Basic (app password).

I have tried to reproduce your error.

* I have given inadequate permissions to the app password used in the Service Connection: this prevents creating the connection.
* I have created a repo with only a nonstandard branch (default branch != 'main' or 'master): works fine.
* I have removed the app password after creating the service connection: valid error, different to the one you report.

It seems ADO is handling everything correctly. We can go through how you create your Service Connection in more detail, if you like? And check how you've set up your repository and pipeline. Can you post the steps you go through for creating a Service Connection to a BitBucket Cloud repository?


Tags: bitbucket-cloud

cloud
Query filter by state.result.name does not work
Asked by Adrian Moica:

I need to do a git diff between the current branch and the last pipeline completed successfully in the master branch. I use the following query to get the last pipeline completed succesfully
> pipelines/?target.branch=master
>
> \&fields=values.build_number,values.state.result.name,values.target.commit.hash
>
> \&sort=-created_on
>
> \&pagelen=1
>
> \&q=(state.name = "COMPLETED" AND state.result.name = "SUCCESSFUL")

that translates to the following URL encoded string

```
pipelines/?target.branch=master&fields=values.build_number,values.state.result.name,values.target.commit.hash&sort=-created_on&pagelen=1&q=%28state.name%20%3D%20%22COMPLETED%22%20AND%20state.result.name%20%3D%20%22SUCCESSFUL%22%29
```

While the other query fields do work, it seems that the query filter q=(state.name = "COMPLETED" AND state.result.name = "SUCCESSFUL") does not have any effect.

Please advise what query I must use to get the last successfully completed pipeline in the master branch.


Answers:
author: Caroline R
body: Hi [@Adrian Moica](/t5/user/viewprofilepage/user-id/2983205),

I'm afraid that filtering does not work with Pipelines API endpoint. You may be able to filter the results using another tool that filters JSON data, like jq, and then use the following API endpoint to trigger a pipelines build:

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#api-repositories-workspace-repo-slug-pipelines-post>

We have a feature request for the ability to filter the results in pipelines API endpoint:

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

If you'd be interested in this feature, I would suggest adding your vote there (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features. You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature requests.

Kind regards,   
Caroline


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Not receiving email notifications anymore
Asked by dgiaiotti:

Dear Support,

I am not receiving e-mail notifications anymore from bitbucket, when a issue is created or a new post is sent to the workspace group; also the pull requests are not notified.

I checked many times all the settings and they are switched on.

From other similar questions and corresponding answers, I read in this forum, I guess my e-mail address has been blocked.

Please could you check if this is the reason for missing e-mail notifications.

Actually this is a big problem for me, since I react promptly to my collaborators activity on bitbucked, thanks to the e-mail,

If the problem persist, I will be obliged to leave bitbucket and Atlassian services, together with my colleagues and move to alternative services notifying by e-mail the activities in the repos.

Many thanks in advance and best regards,

Dario


Answers:
author: Harald Seyr
body: Hi Dario,

please be aware that posting here is probably not resulting in any activity by atlassian support, this here is the community part of the atlassian world.

I suggest to report this issue at [Atlassian Support](https://support.atlassian.com/).

Greetings,

Harald

comments: author: dgiaiotti
body: Dear Harald,

many thanks for you suggestion.

With best regards,

Dario


Tags: bitbucket-cloud

cloud
How to jump to next change, in file, in bitbucket?
Asked by yoni m:

I often prefer to view diffs with the whole file visible, and for example in WinDiff and many other graphical diff tools you have a simple visual indicator showing where to scroll to see the next change, and buttons to jump to the next and previous changes in the file.

Is this possible, at least the "jump to next change" and "jump to previous change" in bitbucket?


Answers:
author: eddie_patton
body: I just discovered that there's a not key "n" that jumps you to the next diff.

"p" jumps to the previous diff.


author: eddie_patton
body: I don't have an answer, but this would be an absolute time saver and also prevent a reviewer from accidentally scrolling by a change!

Please please please add this feature!
Access is denied for Bitbucket
Asked by Vardineni_ Manasa:

I am facing the issues with Bitbucket,

Access is denied {#toc-hId--528929033}
--------------------------------------


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

There's not a lot to work with here, but the answer is not too obscure - you need to talk to the administrators of your Bitbucket to (re)gain your access to it.


Tags: bitbucket-cloud

cloud
Repo size exceeds 4GB, can't push fixes
Asked by Tirso Peralta Camacho:

Hello,

There was a push by mistake recently with a very large that made the repo size more than 4 GB, the branch with the issue was deleted, but it seems that the changes are still part of the history and the repo size didn't decrease and we can't push any new commits to the repo.

We tried enabling the option in labs, but nothing happened.

Is there something we can do to fix it?


Answers:
author: Tirso Peralta Camacho
body: Garbage collection was trigger by the Atlassian team and that decreased the size of the repo


Tags: bitbucket-cloud

cloud
Bitbucket Pipeline step to notify requester
Asked by Mateusz Przyby?ek:

Hi,

We automate what we can in our BB pipeline CI/CD system.

Is there a way to add a step to notify pipeline **run requester** to his Slack account?

Case:

* We have custom pipelines to copy db -\> about 10min long
* We would like to inform Slack member that pipeline is finished
* We have the same email on Slack and BB

I know about the pipe slack-notify: <https://bitbucket.org/atlassian/slack-notify/src>

However, **there is not possible to select the Slack's user.**


Answers:
author: Theodora Boudale
body: Hi Mateusz,

We have an integration with Slack that allows creating subscriptions in a DM:

* <https://support.atlassian.com/bitbucket-cloud/docs/integrate-bitbucket-cloud-with-slack/>

However, this is possible only for repository admins, and if you set it to send notifications on 'pipeline failed' and 'pipeline succeeded', it will send notifications for all builds in that repo (not just for the ones you triggered).

We have a feature request in our issue tracker for personal notifications that includes your use case:

* <https://jira.atlassian.com/browse/API-191>

Since you'd be interested in that feature, I would suggest adding your vote to that feature request (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features. You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

In the meantime, you could create a Slack channel specifically for this reason, use our integration for notifications on 'pipeline failed' and 'pipeline succeeded', and ask users to monitor this channel.

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

slack