youngmon/atlassian-qna huggingface dataset:
How can I move Deployments between Deployment types?
Asked by Nick Heath:

On the Deployment config page, we would like to be able to move a Deployment between Deployment Types, while maintaining the deployment variables attached to it.

For context; we would like Bitbucket reporting to measure release frequency as deploying to the *final* environment. At the start of a project, Dev will be the final env for reporting purposes. When we add Test, Stage, Prod, they will each become the final env, with the others shifted to Staging or Test deployment types.

Currently, we can only reorder *within* a deployment type.

*/admin/pipelines/deployment-settings*


Answers:
author: Mark C
body: Hi [@Nick Heath](/t5/user/viewprofilepage/user-id/5106766)

Thank you for reaching out to the community.

Unfortunately, it is not possible to move a deployment between deployment types.  
However, I believe that feature is beneficial for you and other users as well.  
Hence, I went ahead and created a feature request for it that can be located through this link. - <https://jira.atlassian.com/browse/BCLOUD-23097>

In the meantime, please feel free to upvote and watch the existing feature request through the provided link so that you'll be notified of any updates on its progress.  
We appreciate your patience and understanding as we continue to improve Bitbucket Cloud according to our policy on [implementing new features](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).

Regards,  
Mark C


Tags: bitbucket-cloud

cloud

deployment
Webhook - null response
Asked by Samuel.Arruda:

We're having error when webhook started. On our side firewall we don't received the request from webhook.  

<br />

This is a part of error when we monitoring the Request Logs:  

|         Event         |   Details   |               | Actions  |
|-----------------------|-------------|---------------|----------|
| pullrequest:fulfilled | 2 hours ago | NETWORK ERROR | ........ |

**HTTP status** : -2

**Request time** : 2 hours ago

#### Headers {#toc-hId-315488846}

#### Body {#toc-hId--1491965617}

`<null response>`

### Request {#toc-hId--1502468721}

#### Headers {#toc-hId--811907247}

|-------------|-----------------------|
| X-Event-Key | pullrequest:fulfilled |


Answers:
author: Patrik S
body: Hello [@Samuel.Arruda](/t5/user/viewprofilepage/user-id/5429094) and welcome to the Community

The error you are receiving in the webhook (**Network error -2**) is usually associated with a firewall or a reverse-proxy that is in front of your server and blocking the connection from Bitbucket Cloud.

All the IP ranges used by Bitbucket webhooks are listed in the Outgoing Connections section of the following documentation :

* [Atlassian Cloud - Outgoing Connections](https://support.atlassian.com/organization-administration/docs/ip-addresses-and-domains-for-atlassian-cloud-products/#Outgoing-Connections)

In this case, could you please confirm if all the IP ranges listed in there are currently allowed in any firewall/proxy you have in front of your server ?

I would also suggest taking a look at the following article with suggested steps to troubleshoot bitbucket webhooks :

* [Troubleshoot Webhooks - Bitbucket Cloud](https://confluence.atlassian.com/bbkb/troubleshoot-webhooks-1167729092.html)

Thank you, [@Samuel.Arruda](/t5/user/viewprofilepage/user-id/5429094) !

Patrik S


Tags: bitbucket-cloud

cloud
Restore admin to bitbucket owner
Asked by Rick Sarmento:

I accidentally changed my access from admin to read/write. I'm the owner and primary user... and was the only admin! How do I restore my access.

RS


Answers:
author: Syahrul
body: G'day, [@Rick Sarmento](/t5/user/viewprofilepage/user-id/5429093)

Welcome to the community!

If it's your workspace, you can manage them under workspace settings. You are still the workspace owner even if you remove the access.

If it's on a different shared workspace, then there should be another admin in it that can grant you access.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
can I augment the "pull request created" slack notification to include number of open pull requests
Asked by maciej simm:

Hello. Our team uses the slack integration for bitbucket. When we receive the message that a pull request is created, is there any way to also include the information about how many other pull requests are opened in that repo?


Answers:
author: Furkan
body: Hi [@maciej simm](https://community.atlassian.com/t5/user/viewprofilepage/user-id/5429206)  

We have a Slack app for Bitbucket PRs. You can check it [here.](https://marketplace.atlassian.com/apps/1229830/actioner-for-pull-request-management-in-slack)

The workflows in the app are highly customizable, we can tailor them according to your needs and quickly add this workflow "when a new PR is opened Send a Slack message including the # of pull requests are opened in that repo" \& help on other custom workflows.

<br />

If you're interested, please feel free to contact us from [our Slack community](https://actioner.com/community)  
Best,  
- Furkan from Actioner team


author: Hariharan Iyer
body: Hi [@maciej simm](/t5/user/viewprofilepage/user-id/5429206) ,

This is not possible as of now, but you can externally use the [pullrequests API](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-pullrequests-get) to get this information and post it in slack.

Hope that helps!

comments: author: Furkan
body: Answered in a separate thread. See my response [here](https://community.atlassian.com/t5/Bitbucket-questions/can-I-augment-the-quot-pull-request-created-quot-slack/qaq-p/2608547#M101716)


Tags: bitbucket-cloud

cloud

slack
Not able to select the branch named "production_new" from "From branch" while create a branch
Asked by Harshavardhanreddy_D:

Dear Team,

Trust you are doing well.

I'm trying to create a branch from "production_new" from "branches" -\>"Create branch" from bitbucket portal.

Unfortunately I'm unable to get the branch name "production_new" in the "From branch".

Earlier also faced similar issue. Please assist the same.

Thanks

Harsha


Answers:
author: Ben
body: Hi!

May I know what you see when you attempt to create the branch? Do you see a limited list of branches that you are unable to search through/scroll down?

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Harshavardhanreddy_D
body: Hi Ben,

Thanks you for your response. Yes it's showing limited list of branches and unable to search through scroll down.

![create-branch-issue.png](https://community.atlassian.com/t5/image/serverpage/image-id/306565iA1662319FF89F2E6/image-size/large?v=v2&px=999 "create-branch-issue.png")


author: Mark C
body: Hi [@Harshavardhanreddy_D](/t5/user/viewprofilepage/user-id/5162822),

Unfortunately, It seems what you're experiencing is a known bug on Bitbucket Cloud where the dropdown filter only displays 25 results which means if the result you are looking for is after the 25th result even after using filters, you won't be able to pick it.

We do have an existing bug ticket for it that can be located through this link. - <https://jira.atlassian.com/browse/BCLOUD-20410>  
You can watch and click the "This affects my team" button so that you'll be notified of any updates from our team when the bug is fixed.

You can also consider the workarounds mentioned in the bug ticket.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
Migrate repository 5.7GB
Asked by bardotAU:

I need to migrate a repository of 5.7 GB in size to my premium Bitbucket account. How can I accomplish this? I encountered an error when attempting to migrate via command line, which stated: 'remote: fatal: pack exceeds maximum allowed size.' Are there limitations for using Bitbucket Cloud Migration Assistance to migrate a repository of this size?


Answers:
author: Syahrul
body: G'day [@bardotAU](/t5/user/viewprofilepage/user-id/5393337)

Welcome to the community.

Could you raise a support ticket with us at <https://support.atlassian.com/contact> so we can assist you?

Make sure to use your paid Bitbucket account URL when creating the ticket.

Regards,  
Syahrul

comments: author: bardotAU
body: Hi Syahrul -  

Thanks for your reply.  
I have already raised the ticket.

YOUR SUPPORT TICKET NUMBER  
BBS-214245

Regards

Rahul


Tags: bitbucket-cloud

cloud
Cannot "Enable Pipelines"
Asked by Ivan Tkachuk:

Hi!  
I cannot Enable Pipelines  
I see a lot of issues about it, but I cant see any solution to fix it  
When we try enable it the button showed a tick greyed out. But after page refreshing it again shows like disabled  

![image.png](/t5/image/serverpage/image-id/306079i7E444AF594F7B685/image-size/large?v=v2&px=999 "image.png")  
I have the second repository and everything is okay with pipelines enabling  

Would someone tell me how to enable pipelines for the bitbucket repository?  


Answers:
author: Ben
body: Hi Ivan,

May I know what you see when you click on the Pipelines tab within your repository (not the settings)?

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Ivan Tkachuk
body: Hi, Ben!  
Thank you for yoyr reply!  

I tried switch on pipelines in settings with 2 option:  

1. With bitbucket-pipelines.yml file in repo  
2. Without.  

In first case when I try to run initial pipeline I see  
"Pipelines is currently **disabled** for this repository. Repository administrators can enable Pipelines in repository Settings -\> Pipelines."

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

<br />

In second case it ask me create "my first pipeline"  

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

Thank you for your time!  
Waiting for answer!  

Cheers!

- Ivan


author: Ben
body: Hi Ivan,

What happens when you click "Create your first pipeline"? This is a setup wizard that will create the yml file and establish webhooks so this should not already be present.

Cheers!

- Ben (Bitbucket Cloud Support)


author: Ivan Tkachuk
body: Hi Ban  
If I press "Create your first pipeline" it transfer me to the IDE where I can create pipeline  

- Ivan


author: Ivan Tkachuk
body: I have this issue also on 2 repos  
The same - I just cannot apply "Enable Pipelines" even I have bitbucket-pipelines.yml in repos.


author: Ben
body: Okay so, when you state "It transfers me to the IDE where I can create Pipeline" may I see a screenshiot? Does it let you complete the wizard?

To be clear, you should not have a bitbucket-pipelines.yml file until Pipelines is enabled, as this can cause issues with the wizard.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
We're having trouble loading this board.
Asked by Roni Mondal:

You have been disconnected from Trello  
Why is this notification showing?


Answers:
author: Nikola Perisic
body: Welcome to the community [@Roni Mondal](/t5/user/viewprofilepage/user-id/5428634) !

You got this notification since trello was down for 2 hours, it is up and running now.


Tags: bitbucket-cloud

cloud
How to check a build has passed after a pipeline pushes back to the repository?
Asked by Jos? Luis Gallego Pe?a:

Hello, I am currently making a pipeline that runs RectorPHP on my code, makes the necessary fixes by itself and commits those changes back to the repository.

I have configured a merge check on my pull requests that the build must pass, and when I push back to my repostory, I commit with \[skip-ci\] so the pipeline doesn't loop again and again. Because of this, the last commit on the branch doesn't run the pipeline, so no builds are run and my merge condition of "1+ build passed" is of course unchecked.

The build has passed before, but it isn't reflected on the pull request because of that last commit. What would be the best way to approach this if I want that merge check to reflect that Rector has run successfully and I am able to merge? Thanks for your time  

```
definitions:
  caches:
    rector-cache:
      key:
        files:
          - "composer.lock"
      path: ./var/cache/rector

pipelines:
  pull-requests:
    '**':
      - step:
          name: Install composer dependencies
          script:
            - composer install --no-progress --ansi
          caches:
            - composer
          artifacts:
            - build/**
            - vendor/**
            - composer.json
            - composer
      - step:
          name: Rector and ECS
          script:
            - composer fix-rector
            - composer fix-cs
            - git config --global --add safe.directory /opt/atlassian/pipelines/agent/build
            - if test -n "$(git diff)"; then git add . && git commit -m "[skip ci] Rector and ECS fixes" && git push; fi
          caches:
            - composer
            - rector-cache
```


Answers:
author: Saxea _Flowie_
body: Hi [@Jos? Luis Gallego Pe?a](/t5/user/viewprofilepage/user-id/5428523)

Maybe you could try to do this using the [REST API](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-commit-statuses/#api-repositories-workspace-repo-slug-commit-commit-statuses-build-post) to update the status for the last commit at [the end](https://support.atlassian.com/bitbucket-cloud/docs/step-options/#after-script:~:text=double%20the%20memory!%22-,After%2Dscript,-The%20after%2Dscript)? You'd also need to cater for build failure.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Self hosted bitbucket runner 'docker command not found'
Asked by Charlie Davies:

Hi,

We have 3 self hosted runners which run fine for a while until one day our pipelines start to fail with 'docker command not found'. We then have to delete the runners and re-add new ones after that everything works as expected.

Anyone have any experience with this?

We do run watchtower against these runner images to keep them up to date. Could this be causing an issue?

Thanks.


Answers:
author: Theodora Boudale
body: Hi Charlie,

Are these Linux Docker runners?

If so, can you check the following knowledge base article?

* <https://confluence.atlassian.com/bbkb/docker-command-not-found-error-while-running-docker-commands-in-self-hosted-runner-1206785605.html>

It has details about a possible cause for this error and the steps you can take to resolve, if you are running into the same issue.

Kind regards,  
Theodora

comments: author: Charlie Davies
body: Hi Theodora,

Yes that is the problem. Thank you for pointing me in the direction of the answer.

Kind Regards,

Charlie


author: Theodora Boudale
body: Hi Charlie,

You are very welcome, it's good to hear that this helped. Please feel free to reach out if you ever need anything else!

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Isolated container - Yes or No?
Asked by Irina Litinskaja:

We are currently in the process of transitioning from Node.js 16 to Node.js 20. Our 'develop' branch successfully builds with Node.js 20, while our 'release' branch still relies on Node.js 16.

During the build process on the 'release' branch, we encountered an error indicating that the Node.js 16.x image lacks the necessary bindings for the version of node-sass we are using. Surprisingly, bindings for Node.js 20.x were found successfully in my build process, but not for Node.js 16.x.

Given that containers are designed to be isolated, we are puzzled by how this issue could occur. Any insights or suggestions on resolving this would be greatly appreciated.

Thank you for your assistance!

Best regards,  
Irina


Answers:
author: Theodora Boudale
body: Hi Irina,

If your Pipelines builds run on Atlassian's infrastructure or if you are using a self-hosted Linux Docker runner, then these builds use Docker containers.

For every step of your build, a Docker container starts (the build container) using the image you have specified in your bitbucket-pipelines.yml file. The repo is cloned in the build container, and then the commands of the step's script are executed. When the step finishes that Docker container gets destroyed. The containers are separate for each pipeline and they are also separate for each step of the same pipeline.

* Do these builds run on Atlassian's infrastructure or a self-hosted Linux Docker runner?
* Do you use pipelines that run on a [branches](https://support.atlassian.com/bitbucket-cloud/docs/pipeline-start-conditions/#Branches) definition, and do you have one for develop and another one for release branch?
* If so, do you use a different image as a build container for the steps of each pipeline?
* I'm not sure what these bindings are. Are they preinstalled in the Docker image you use as a build container or do you download them during the build?

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
I cant remove 2FA
Asked by M.A. Yalcinkaya:

Hi all,

Since I switched from phone, my 2FA credentials didn't move over to my newer device and factory reset the older phone, how can I access my bitbucket account again?  

I've tried the recovery mail but I didn't recieved it after 24 hours.


Answers:
author: Nikola Perisic
body: Welcome to the community [@M.A. Yalcinkaya](/t5/user/viewprofilepage/user-id/5428358) !

I understand your issue. You can refer to this page here: <https://community.atlassian.com/t5/Bitbucket-questions/remove-2FA-from-bitbucket/qaq-p/2157655>

Also, since you as well have problem with not receiving the email address, raise a ticket for Atlassian:

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

I will also tag Atlassian in the mean time, so this issue gets higher visbility.

comments: author: M.A. Yalcinkaya
body: Hi Perisic,

Thanks for your reply.

Ill look into it!


Tags: bitbucket-cloud

cloud
Incorrect password when uploading data to my remote repository using git
Asked by DesarrolloXerez DEVELOPMENT:

When I try to do a git push -u origin master to my repository to upload local data to remote, it asks me for a password that I cannot validate, the one I registered does not work. How can I solve that? Thank you so much.


Answers:
author: Ben
body: G'day!

Thank you for contacting Bitbucket Cloud Support.

The most common issue customers are experiencing related to authentication is due to the deprecation of **GIT username/password** in favour of **App Passwords** on 01/03/2022:  
<https://community.atlassian.com/t5/Bitbucket-articles/Announcement-Bitbucket-Cloud-account-password-usage-for-Git-over/ba-p/1948231>

You will need to make use of an **App Password** for communicating to GIT via HTTPS.  
We have documentation for usage of app passwords at the following link:

* <https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/#Create-an-app-password>

Essentially, when connecting via HTTPS you will use your App Password alongside your username seperated with a ":" character.

Therefore if you are authenticating to **GIT over HTTPS** to push/pull you will need to update your remote URL's to include the **App Password**:

```
git remote set-url origin https://USERNAME:APP_PASSWORD@bitbucket.org/workspaceID/reposlug.git

```

The same applies when performing git clone:

```
git clone https://USERNAME:APP_PASSWORD@bitbucket.org/workspaceID/reposlug.git

```

I would suggest ensuring also that all stored passwords related to authentication over GIT are cleared from your machine (ie Credential Manager for Windows, Access Keychain for Mac or /etc/shadow folder for Linux).

Hope this helps.  

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Need help cannot push because the account exceeds its limits and repository is readonly
Asked by Roque III Briz:

I have this error when pushing it our code to bitbucket:

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

I can't proceed after this error,


Answers:
author: Syahrul
body: G'day, [@Roque III Briz](/t5/user/viewprofilepage/user-id/5003901)

From the screenshot and observations, your workspace has reached its user limit due to a downgrade to the free plan, which allows only up to 5 users.

To resolve this issue, you must update your workspace payment or reduce the number of users to five or fewer.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
Crucible: initial landing page doesn't show reviews I have issued
Asked by Brent Scriver:

Context: Crucible v3.1.2, Perforce SCC  
To get to my list of reviews to find out what they are blocked on I have to go at least two clicks to get there instead of having them on the landing page. Has this changed since 3.1.2 of Crucible?


Answers:
author: Nic Brough -Adaptavist-
body: This is the same as several other questions you've recently asked. The answer remains "check the issue tracker for Crucible and read the release notes"


Tags: perforce

review
Crucible: Has the number of supported revisions in a review been increased?
Asked by Brent Scriver:

Context: Crucible v3.1.2, Perforce SCC  
We have frequently hit the max revision limit as we refactor our code base. Has this limit been increased since 3.1.2?


Answers:
author: Felipe Kraemer
body: Hi Brent,

Crucible limitations are usually related to poor performance caused by large reviews.

I've searched by issues related to slowness or performance while performing reviews fixed since v3.1.2 and I've found [5 issues](https://jira.atlassian.com/issues/?jql=project%20%3D%20CRUC%20AND%20(text%20~%20%22slow%20review%22%20OR%20text%20~%20%22review%20performance%22)%20AND%20fixVersion%20%3E%3D%203.1.2%20AND%20resolution%20is%20not%20EMPTY).

This means that Crucible *should* be performing better with large reviews in its latest version (v3.6.1), comparing to v3.1.2.

If this answer was helpful, please allow me to ask you to mark my answer as accepted in order to have it in the top of the thread, also helping other customers.

Thanks in advance!

Kind regards,  
Felipe Kraemer  
Atlassian Support


author: Brent Scriver
body: I did go through the release notes sincerely hoping I was missing something. Unfortunately that doesn't seem to be the case as I was hoping an upgrade would be a simpler resolution for issues than looking for a different solution.


author: Nic Brough -Adaptavist-
body: This is the same as several other questions you've recently asked. The answer remains "check the issue tracker for Crucible and read the release notes"


Tags: limit

perforce

revision
Crucible: Is showing only diffs from source for branched files available in a later release than 3.1.2?
Asked by Brent Scriver:

Context: Crucible v3.1.2, Perforce SCC  
When branching/integrating a file in Perforce and uploading to Crucible it treats the file as new instead of showing diffs from the source file branched from. Is this functionality available in a later release?


Answers:
author: Nic Brough -Adaptavist-
body: This is the same as several other questions you've recently asked. The answer remains "check the issue tracker for Crucible and read the release notes"


Tags: branch

diff

perforce
Crucible: Is diffing new files fixed since 3.1.2?
Asked by Brent Scriver:

Context: Crucible v3.1.2, Perforce SCC  
When uploading diffs for a new file we cannot see diffs between the revisions uploaded. Is this fixed in a later release?


Answers:
author: Felipe Kraemer
body: Hi Brent,

I am not sure if I am missing something, but if it is a **new file,** all lines on the file source will be green because all of them have just been added in the new file.

Red lines would only be shown if the file was committed at least once and the subsequent commits have modified or deleted lines on the source code.

Kind regards,  
Felipe Kraemer  
Atlassian Support


author: Nic Brough -Adaptavist-
body: This is the same as several other questions you've recently asked. The answer remains "check the issue tracker for Crucible and read the release notes"


Tags: diff

perforce

revision