youngmon/atlassian-qna huggingface dataset:
How can I access the list of PRs when comparing branches?
Asked by Allan Jones:

e.g. <https://bitbucket.org/xxxxx/repo/branches/compare/development%0Dmaster>

Until (very) recently, this page used to have a tab that listed out the PRs that were different between the two specified branches. Our workflow used that list to provide information for release notes but it seems to have been entirely removed from that page, and there doesn't appear to be any other way to obtain that information that I can see.

Is there some other way to obtain a list of the PRs that are different between two specified branches? Is that available somewhere else in the system, or via the API?


Answers:
author: Patrik S
body: Hello [@Allan Jones](/t5/user/viewprofilepage/user-id/4457648) ,

welcome to the Community!

Based on your description, you seem to be talking about the "Merged pull requests" tab that was present on the branch compare page.

This tab was recently removed from the Bitbucket UI due to technical reasons as announced by Bitbucket Product Manager, Katar?na Luk?csy, in the following community article:

* [Bitbucket Cloud is removing "Merged pull requests" tab from Branch Compare view](https://community.atlassian.com/t5/Bitbucket-articles/Bitbucket-Cloud-is-removing-Merged-pull-requests-tab-from-Branch/ba-p/2693698)

That article provide some possible workaround that may fit your workflow.

However, if neither of the options provided as a workaround applies to your use case, we have opened the following feature request to re-introduce that functionality into the product :

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

Feel free to add your vote on that feature so the engineering team can understand the demand. You also have the option to set yourself as a Watcher, so you'll get notified by email of any future updates to that feature.

Thank you, [@Allan Jones](/t5/user/viewprofilepage/user-id/4457648) !

Patrik S


Tags: atl-rvw

bitbucket-cloud

cloud
Clear clone cache in self hosted linux arm64 runner
Asked by Ananya Pandey:

Setup:  
- Running pipelines on a self hosted linux docker (arm64) runner with dind

Problem:  
- Not able to clear the repository clone cache

I am running a pipeline on a self-hosted linux docker (arm64).  
The pipeline configuration is to run dind (with a custom docker image running "in-d") and all the pipeline scripts executing on the custom docker image.

On running docker compose up, the docker-compose.yml being used is the cached file and not the updated file.

I tried clearing the cache using the pipe **atlassian/bitbucket-clear-cache**, but it turns out, this is not available for the arm64 achitecture.

Any help would be greatly appreciated.


Answers:
author: Patrik S
body: Hello [@Ananya Pandey](/t5/user/viewprofilepage/user-id/5513784) , and welcome to the Community!

Bitbucket Pipelines will only [cache](https://support.atlassian.com/bitbucket-cloud/docs/cache-dependencies/) files/folders that were explicitly defined to be cached in your YML file. E.g. :

```
definitions:
  caches:
     bundler: vendor/bundle

pipelines:
  default:
     - step:
       caches:
         - bundler #cache is defined above in the definitions section
       script:
         - bundle install --path vendor/bundle
```

Could you please confirm if you have a cache defined in your YML file? If yes, you can manually remove any cache following the below instructions:

1. Navigate to the repository
2. Select **Pipelines** option on the left side menu
3. Click on the **Caches** button in the top right
4. Delete any existing cache by clicking on the **Trash icon** right after it.

After deleting all the caches you can trigger a new pipeline and check how it goes.

If you are still facing issues after following those steps, we kindly ask you to share your YML file here so we can have a better understanding of your pipeline setup.

If you prefer not to share that information here publicly, I see your workspace has an active paid plan that is entitled to Standard support. In this case, feel free to open a support ticket with us on [Atlassian Support portal](https://support.atlassian.com/contact/) , selecting *Technical Issues and bugs \> Bitucket Cloud* and providing the workspace URL of the paid workspace when asked in the form.

Thank you, [@Ananya Pandey](/t5/user/viewprofilepage/user-id/5513784) !

Patrik S

comments: author: Ananya Pandey
body: Hi [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) ,  
Thank you for your response.

I implemented a work-around by cross-compiling the atlassian/bitbucket-clear-cache for arm64 architecture and using a docker image pipe instead of a repository.

Thanks for your solution though.


Tags: bitbucket-cloud

bitbucket-pipelines

bitbucket-runners

cloud

dind
Not receiving email to complete 2FA for BitBucket
Asked by Helge Holm:

I have added my authenticator and am waiting for the email to enable it. It did not arrive for 2 hours now, and have retried again multiple times during. Other emails from Atlassian are coming through fine.

The email is not in my spam folder.

![Screenshot from 2024-06-05 11-14-44.png](https://community.atlassian.com/t5/image/serverpage/image-id/327985i139E45398F16612A/image-size/large?v=v2&px=999 "Screenshot from 2024-06-05 11-14-44.png")


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

Your email address was in our suppression list, because when we attempted to send an email we received a hard bounce response from your mail server with the message
> Recipient not found by SMTP address lookup

I went ahead and removed your email address from the suppression list.

If your email account is operational now and you can receive other emails, please follow the process to setup 2FA again so a new email gets sent. A new email needs to be sent, as the previous ones were dropped.

Please feel free to let me know how it goes.

Kind regards,  
Theodora

comments: author: Helge Holm
body: Thank you, that helped!


Tags: atl-rvw

bitbucket-cloud

cloud
nextjs standalone folder not found
Asked by Samuel Odebunmi:

I was able to build the image successfully on my local machine and the standalone folder was there when i inspected the build but on the bitbucket pipeline, it keeps saying the folder is not found. Besides, this passes sometimes after several trials but of recent, it is not even working again.


Answers:
author: Patrik S
body: Hello [@Samuel Odebunmi](/t5/user/viewprofilepage/user-id/5513578) , and welcome to the Community!

I'm not sure if I fully understand your issue, so I would like to ask for a few more details about your setup :

* Are you facing the issue when running a build using Bitbucket Pipelines? If yes, are you using self-hosted runners, or is the build executed on the cloud (Atlassian infrastructure)?
* If using self-hosted runners, which type of runners? Linux docker, Linux shell, macOS, or Windows?
* Could you share with us here the ++YAML file++ of your build and also the ++logs of the failed build++ so we can take a look at your build setup and also the exact error that is being displayed? Please make sure to sanitize any sensitive information from the logs as this is a public forum.

With this information we'll be better equipped to assist you further on this investigation. Thank you, [@Samuel Odebunmi](/t5/user/viewprofilepage/user-id/5513578) !

Patrik S

comments: author: Eugen Kochtyrew
body: Same for me, but not only the standalone folder in .next other folders like static, etc. are also missing.  
It also takes like 8 Minutes for a fresh nextjs app created with "npx create-next-app@latest"

I increased the memory to 2x, but it also does not seem to solve the issue.

```
pipelines:
  branches:
    develop:
      - step:
        size: 2x
        services:
        - docker
```


author: Pedro Paulo
body: Same here. Any news on that?  

Or the pipeline hangs in the build (for more than 1 hour sometimes!) until I manually cancel it. OR the pipeline error out, but the NextJs folders like the .next/standalone and static can not be found. They simply are not there, and no errors is shown in the log window.

I could "cat next.config.mjs" file and the output I see in the console is correctly set to "standalone". What the heck could happen, BitBucket?  

I'll test this image in GitHub Actions. I'm pretty sure it will work flawlessly, as it works on my local machine.


author: Eugen Kochtyrew
body: This fixed it for me:

```
options:
  docker: true
  size: 2x
  max-time: 10

definitions:
  services:
    docker:
      memory: 4096
```


author: Arilson Barcelos
body: Thank you, [@Eugen Kochtyrew](/t5/user/viewprofilepage/user-id/5514967)

This worked for me too!


Tags: bitbucket-cloud

cloud
Not receiving email to complete 2FA for BitBucket
Asked by Sourab Hossain:

Not receiving email to complete the verification process. I have used Microsoft Authenticator for authentication.

![ss.png](/t5/image/serverpage/image-id/327948i96C18AE819C54BC8/image-size/large?v=v2&px=999 "ss.png")


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

Your email address was in our suppression list, because when we attempted to send an email we received a hard bounce response from your mail server with the message
> 554 5.7.1 \[internal\] recipient address was suppressed due to customer policy

This usually occurs when the address is invalid (address does not exist), when a user clicks the list-unsubscribe header, or when a user clicks one of our emails and flags it as SPAM.

I went ahead and removed your email address from the suppression list. Could you please follow the process to set up 2FA again so a new email gets sent? A new email needs to be sent, as the previous ones were dropped.

Please feel free to let me know how it goes.

Kind regards,  
Theodora

comments: author: Sourab Hossain
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086), Thanks for your confirmation! I'm glad to know it worked! :)


author: Theodora Boudale
body: That's good to hear, thank you for the update! Please feel free to reach out if you ever need anything else!


Tags: bitbucket-cloud

cloud
How to either remove auto-watching issues I create, or stop getting emails from those issues
Asked by gesslar:

I am using Bitbucket (Cloud) and have an API from my game that whenever players submit an issue in-game, it creates an issue in Bitbucket.

As all of these issues are created on my name, I get emailed for every issue created.

I would like to stop receiving email notifications either by not automatically watching issues or somehow disabling this functionality to email me when an issue is created.

I am already receiving messages in-game, and in my VS Code which is tied to Bitbucket when new issues are created. I don't also need an email.


Answers:
author: Ben
body: Hi gesslar,

To disable issue notifications:

1. Navigate to your repository
2. Click the **... ellipsis** button
3. Select **Manage Notifications** from the dropdown
4. Untick **Issues**from the list

I hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Commits not showing under the development section after migrating Bitbucket to the cloud
Asked by Paul Palasti:

We migrated our Bitbucket server instance to the cloud. After the migration **we are not** seeing the commits under the Development sections of Jira.

In Bitbucket: Our Workspace Setting / Jira is pointing to our Jira Cloud instance.

In Jira under Products / DVCS Accounts our Bitbucket Cloud workspace and all repositories are showing.


Answers:
author: Syahrul
body: G'day, [@Paul Palasti](/t5/user/viewprofilepage/user-id/2442498)

Can you please raise a support ticket in our [Support portal](https://support.atlassian.com/contact)? I suspect your Bitbucket may still point to your old Jira server rather than your Jira cloud, so it's not linking the commit correctly.

We may need to investigate it further to verify, and we would appreciate it if you could create a support ticket with us.

Regards,  
Syahrul

comments: author: Paul Palasti
body: Hello Syahrul,

Support ticket was created prior to posting on the community site. I posted here to see if anyone in the community is experiencing similar issues.


Tags: bitbucket-cloud

cloud
not able to access bitbucket
Asked by ckuan:

atal: Invalid credentials  
remote: Invalid credentials  
fatal: Authentication failed for '<https://bitbucket.org/workspace-id/repo/src/master/>'

\[URL edited for privacy\]


Answers:
author: Laurie Sciutti
body: Hi [@ckuan](/t5/user/viewprofilepage/user-id/2419647) \~ are you able to access this link? <https://bitbucket.org/workspace-id/workspace/repositories/>

\[URL edited for privacy\]

comments: author: ckuan
body: the solution that i found before was not clear at all so i was confused

but i have figured the solution

thanks for helping


Tags: bitbucket-cloud

cloud
Are pipelines experiencing issues right now?
Asked by chrisbrown1:

getting this error

Unexpected error fetching bitbucket-pipelines.yml at revision f5a9fd3 in repository

For pipelines that were running fine earlier today and we havent changed any config in bitbucket-pipelines.yml

Support ticket system seems to be down too.


Answers:
author: Ben
body: Hi Chris,

Everything appears to be up and running again - it looks like there was an incident that has now been fixed.

Are you able to attempt to re-run the build?

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: chrisbrown1
body: yes! All good now. Thanks.


author: Ben
body: Hey Chris,

Good to hear - I'd recommend following along for updates on our Statuspage entry for more details:  
<https://bitbucket.status.atlassian.com/incidents/l1z18sw6ddbh>

Cheers!

- Ben (Bitbucket Cloud Support)


author: chrisbrown1
body: I was! It actually showed no issues until after your response.


Tags: bitbucket-cloud

cloud
Why is Pipeline deployment rsync-deploy with SSH_ARGS failing
Asked by Mike Moore:

I am using pipe: atlassian/rsync-deploy:0.12.0. The script is changing the group and permissions. Per the documentation and if I am understanding correctly I can pass these arguments to prevent this, but it if failing. How can I prevent the permissions from changing or make these commands work?  
SSH_ARGS: '--perms --chmod=D2775,F0664 --owner --group'

ssh: unrecognized option: -  
rsync: connection unexpectedly closed (0 bytes received so far) \[sender\]  
rsync error: unexplained error (code 255) at io.c(231) \[sender=3.2.7\]

Thank you


Answers:
author: Patrik S
body: Hello [@Mike Moore](/t5/user/viewprofilepage/user-id/5511948) ,

and welcome to the Community!

When you have multiple arguments to provide to the rsync comment, it's recommended that you pass those arguments as an ARRAY in the pipe's definition.

Also, it looks like you are using the SSH_ARGS variable, which is strict to the underlying SSH connection, while those flags you have provided are actually RSYNC args that should be put in the EXTRA_ARGS variable instead.

That being said, for your use case, the *--perms* and --*chmod* flags would be necessary to set the destination file permissions to the ones you want. Providing those arguments as an array would look like below :

```
script:  - pipe: atlassian/rsync-deploy:0.12.0    variables:      USER: 'ec2-user'      SERVER: '127.0.0.1'      REMOTE_PATH: '/var/www/build/'      LOCAL_PATH: 'build'      DEBUG: 'true'      EXTRA_ARGS:        - "--perms" # double quotes here are necessary        - "--chmod=D2775,F0664"
```

Could you try with that syntax and let us know how it goes?

For more examples, you can also refer to that pipe's official documentation below (the instructions are contained in the README file) :

* [atlassian/rsync-deploy](https://bitbucket.org/atlassian/rsync-deploy/src/master/)

Thank you, [@Mike Moore](/t5/user/viewprofilepage/user-id/5511948) !

Patrik S

comments: author: Mike Moore
body: Thank for your help, I have not worked with yml much and did not catch they should be setup as array. After I adjusted the command it did not error out. It was still not preserving or updating the permissions on the ec2. I ended up adding a bash script that would update there permissions and calling it after the pipe is ran.


Tags: bitbucket-pipelines

cloud

pipes

rsync-deploy
Default reviewers for a branch in Bitbucket Cloud
Asked by Paul Palasti:

How do I set default reviewers for a branch in Bitbucket Cloud? Server version has this capability.


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: Hi Paul,

Bitbucket Cloud released [Code Owners](https://bitbucket.org/blog/code-owners) where you can configure reviewers at branch and file/module level in a .codeowners file that's part of your repository.

If you're looking for a more convenient and intuitive UI based approach that lets you configure reviewers for branches, files and modules on a Workspace, project and repository level you may find our [Workzone](https://izymes.com/workzone/) (\*) app of value.

Let me know if you need any further help to set this up.

Best, Ulrich

// Izymes

(\*) PS: you can also find [Workzone](https://marketplace.atlassian.com/search?query=workzone) listed on the Atlassian Marketplace, however at the time of writing the Atlassian Marketplace experiences an outage and the [link](https://marketplace.atlassian.com/search?query=workzone) may not work.

comments: author: Paul Palasti
body: Thank you Ulrich, we will look into both options.

Regards,

Paul


Tags: bitbucket-cloud

cloud
Large repository size even after removing all files and git history
Asked by Matej Mur?n:

Hi guys,

We exceeded the allowed 4GB size of the repository, so I opted to revert some commits and remove the large files.

That said, I removed **all** the large files and I left only the codebase in the repository which now has 10s of MB in total. However, the size of the Bitbucket repo remained at 2.43 GB. I thought it might be because of some files still stored in the history, so I removed the whole history as well, but that didn't affect the size either.

I'm reading now that garbage collector might need to be run on the repo. Is there a way I can run it myself or does the Bitbucket team need to run it?

Thank you


Answers:
author: Patrik S
body: Hello [@Matej Mur?n](/t5/user/viewprofilepage/user-id/5512993) ,

and welcome to the Community!

The garbage collection (GC) is indeed necessary to remove any dangling objects left behind after you clean up the repository. The GC is automatically executed from time to time in the repository based on internal heuristics, but we from support can help on manually running a GC for you.

I went ahead and checked the repositories you have access to and found one that matched the size you put in the description. The GC on that repo was completed successfully, reducing its size from 2.4GB to **2.2MB**!

Would you please confirm if everything looks good on your end now?

If you were actually referring to a different repository, please share the masked name of it with us so we can trigger a GC for that repository as well.

Thank you, [@Matej Mur?n](/t5/user/viewprofilepage/user-id/5512993) !

Patrik S

comments: author: Matej Mur?n
body: Wow, amazing!!! ? Working like a charm, thank you so much [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) !

Just for the future reference - how often are the automatic GC clean ups ran? Perhaps once a day or it depends heavily on the case and the heuristic evaluation?

Thanks again


author: Patrik S
body: Wonderful! Thank you for the update and happy to hear it worked :)

The automatic GC heavily depends on internal heuristics evaluation, such as loose objects and the size of the packfile, so there's not a specific "scheduled" time for it to run. It will be triggered when those heuristics reach a threshold.


Tags: git
I see the 'In Progress' status when one of the manual steps in pipeline is redeployed
Asked by Dinara Tablina:

Hi,

I see the status of the pipeline as*In progress* when one of the manual steps in the pipeline *Redeployed* (even though it was many hours ago). According to the Atlassian team member's [answer](https://community.atlassian.com/t5/Bitbucket-questions/Re-Why-do-I-see-the-completed-pipeline-status-as-quot-Paused/qaq-p/2710948/comment-id/104654#M104654), what does this status mean?

![InProgress.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/327713i102F3B9B986EAD68/image-size/large?v=v2&px=999 "InProgress.PNG")


Answers:
author: Ben
body: Hi Dinara,

**In Progress**should display for builds that are in the middle of running (not paused, succeeded, or failed).

As it is a re-run, it shows 20 hours ago because that's when the build was first executed - it's just a re-run of the same build. New builds will show with a more recent **Started**value.

Please let me know if further clarification is needed.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Dinara Tablina
body: Hi [@Ben](/t5/user/viewprofilepage/user-id/4537226) ,

I think you misunderstood me.

One of the steps in my pipeline was redeployed more than 20 hours ago. It took only 29 seconds to complete this step.

But for the past 2 days I've been watching the status of the whole pipeline as *In Progress.* Why? I suppose that it is a bug because none of the steps have been in progress for the last 2 days.

![redeploy.png](https://community.atlassian.com/t5/image/serverpage/image-id/327970i47D5EA909A754855/image-size/large?v=v2&px=999 "redeploy.png")


author: Ben
body: Hi [@Dinara Tablina](/t5/user/viewprofilepage/user-id/5495660)

We will need to take a look at your Pipelines builds to analyse this further. I can see your workspace has a Standard support entitlement and therefore you are entitled to support from our support team.

Can you please let me know which timezone you are in so that I may raise a ticket on your behalf? Alternatively, you can select **Bitbucket Cloud \> Technical Issues \& Bugs**and enter your companies workspace URL in the support form to raise a ticket:

* <https://support.atlassian.com/contact/>

Cheers!

- Ben (Bitbucket Cloud Support)


author: Dinara Tablina
body: Hi [@Ben](/t5/user/viewprofilepage/user-id/4537226)

Our timezone is UTC+2. Please raise a ticket on our behalf.

The problematic pipeline has the number #2377.


author: Ben
body: Hi Dinara,

No worries - I've raised a ticket, please check your email :)

Cheers!

- Ben (Bitbucket Cloud Support)


author: Dinara Tablina
body: Thank you, [@Ben](/t5/user/viewprofilepage/user-id/4537226)


Tags: bitbucket-cloud

cloud

pipeline

status
not able to login in bitbucket because of 2fa authentication
Asked by Balwant Singh:

facing difficulty to login in my bitbucket account since it is asking for 2fa code need urgent help since my previous smartphone is dead there not able to login using that i also try to forgot password but till not didn't got any mail regarding that kindly help me with that. Thanks


Answers:
author: Patrik S
body: Hello [@Balwant Singh](/t5/user/viewprofilepage/user-id/5511780) ,

and welcome to the Community!

In cases where you don't have access to the 2FA code anymore (e.g changed/lost the smartphone), you can request the recovery e-mail through the login screen.

When prompted for the Two Step Verification codes, you will need to click on "Forgot code" \> Send recovery e-mail.

You will receive an email confirming that the recovery process has been initiated. You must wait 24 hours to receive the email with a one-time recovery link to log in to your Bitbucket Cloud profile.

Checking our internal logs, I see you requested the 2FA reset yesterday and the recovery email containing the link to log in and reset the 2FA was already sent to your mailbox.

Could you confirm if you were able to get back into the account using the reset link?

In case you are still facing issues, please let us know.

Thank you, [@Balwant Singh](/t5/user/viewprofilepage/user-id/5511780) !

Patrik S


Tags: bitbucket-cloud

cloud