youngmon/atlassian-qna huggingface dataset:
can anyone guide me on which IP addresses and ports I should open in Bitbucket to allow communicatio
Asked by Wajid Anwar:

Hi Bitbucket community,

I hope you're all doing well! I'm currently working on setting up an Azure VM as a runner in Bitbucket for infrastructure provisioning, and I'm running into a bit of a roadblock with understanding the network configuration.

I've already checked the <https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/> to configure my corporate firewall, but I'm unsure about the IP addresses and ports needed for communication between Bitbucket and my Azure VM runner.

In simple terms, can anyone guide me on which IP addresses and ports I should open in Bitbucket to allow communication with my Azure VM runner? I want to make sure that the two can talk to each other smoothly.

Any help or advice would be greatly appreciated!

Thanks in advance!


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

The IPs you need to whitelist depend on what exactly you need to do on this server with Bitbucket Cloud.

If you want to clone or push to Bitbucket Cloud repositories, or run API calls, you need to whitelist the IP addresses listed in the section **Valid IP addresses for bitbucket.org, api.bitbucket.org, and altssh.bitbucket.org** on the page you linked.

If you run Pipelines builds on Atlassian infrastructure and you want the Pipelines build to communicate with your server, then you will need to whitelist the IP addresses listed in the section **Valid IP addresses for Bitbucket Pipelines build environments**.

If you want to set up a webhook in one of your repos so that Bitbucket Cloud sends a request to your server, you will need to whitelist the IP addresses listed on the page below, section **Outgoing connections**:

* <https://support.atlassian.com/organization-administration/docs/ip-addresses-and-domains-for-atlassian-cloud-products/#Outgoing-Connections>

Please note that the IPs need to be whitelisted on your server's firewall and not on Bitbucket Cloud. In case you are on the Premium plan and you are using the **Allowlisting IP addresses** feature to control which IP addresses can access your Bitbucket Cloud workspace, then you will need to allowlist in your Bitbucket workspace your server's public IP addresses.

The ports Bitbucket uses are also mentioned on the page you shared, it uses the standard ports for HTTP/HTTPS/SSH which are 80/443/22.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Allure Report pushed to bitbucket private repository giving 'Repository not found ' error
Asked by Lekshmi Ramachandran:

I am trying to push the generated allure report to my private repository. But it alwyas gives me Repository not found error.

I have tried changing the username and created the repo as \<myusername\>.bitbucket.io. But still its the same. I am really in need of this. Can someone please help me here.?

Appreciate your reponse.


Answers:
author: Ben
body: Hi Lekshmi,

I can see that the static website repositories that belong to your workspace have special characters such as "-" and "_".

These are not supported at this stage as they clash with DNS hostname capabilities. You would need to [change workspaceID](https://support.atlassian.com/bitbucket-cloud/docs/change-a-workspace-id/) so that there are no dashes/underscores, and then rename your website repository to match this (without dashes/underscores).

We have a [feature request](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) logged with our developers concerning this. Please **Watch** this to receive future updates related to it and **Vote**for it to improve its visibility regarding customer demand:

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

Let me know how this goes.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
What database table store commit history with user ID\name.
Asked by Vishal Kulshreshtha:

Hello All,

I am trying to migrate users from one User Directory to another user directory, and I want to run a SQL before and after on PostgreSQL to make sure that all users once migrated to new user directory have old checkin\\checkout and commit history associated properly.

I need something like this.

slug\\reponame commit_ID\\ username

myrepo aa16818eb9a61409bb14f63baff4339c71a78262 myID


Answers:
author: Christian Glockner
body: Hi Vishal,

Commit information is stored in repositories, not in the database.

Cheers,  
Christian  

Premier Support Engineer  
Atlassian


Tags: bitbucket-server

server
searching & watching repositories?
Asked by dchmelik:

What happened to being able to search the whole site (it just searches my own page) and watch repositories, and see the list of wahat you watched? I watched several (which still exist) which seem to exist in no menu.


Answers:
author: dchmelik
body: Yes; my only use case is to see and get updates on others' projects I follow. I don't use workspaces, and don't plan to, and don't know what they are. If I have to switch to workspaces of all projects I follow that makes the site maybe pointless to use.


author: Syahrul
body: G'day [@dchmelik](/t5/user/viewprofilepage/user-id/5294476)

Welcome to the community!

We've changed how the UI works recently; hence, you can no longer view all accessible repositories across different workspaces in a unified dashboard or search them collectively. Instead, you can now view a list of repositories specific to the workspace you are currently browsing.

If you would like to see adjustments to this change, please share an example use case. This will aid us in raising a feature request.

Regards,  
Syahrul
Pipelines - Unable to push to same docker tag as the commit tag
Asked by IT:

*** ** * ** ***

*** ** * ** ***

I want to push my built images to docker hub with the same tags like the commit tag but get this error message:

```
Error parsing reference: "bruyland/nest-appinfo-test:" is not a valid repository/tag: invalid reference format
```

It's obvious that the \`$BITBUCKET_TAG\` variable is empty, but I dpon't understand why.

Here's the pipeline, I've been following this recipe: <https://think-engineer.com/blog/devops/bitbucket-pipelines-building-publishing-and-re-tagging-docker-images-in-a-ci-cd-workflow>

```
options:
```

```
  docker: true
  steps:
    - step: &build-and-push
        size: 2x
        name: build and push docker image
        script:
          # build the Docker image
          # origional IMAGE_NAME export IMAGE_NAME=myorg/myapp:$BITBUCKET_BRANCH-$BITBUCKET_COMMIT
          - export IMAGE_NAME=bruyland/$BITBUCKET_REPO_SLUG
          - echo '"$IMAGE_NAME"'
          - docker build --build-arg COMMIT=$BITBUCKET_COMMIT --build-arg TAG=$BITBUCKET_TAG -t $IMAGE_NAME .
          # authenticate with the Docker Hub registry
          - docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_PASSWORD
          # push the new Docker image to the Docker registry
          - docker push $IMAGE_NAME
pipelines:
  branches:
    develop:
      - step: *build-and-push
    master:
      - step: *build-and-push
  tags:
    '*':
      # - step: *build-and-push
      - step:
          name: retag and repush image
          script:
            # get the image that was built in the master branch
            - export IMAGE_NAME=bruyland/$BITBUCKET_REPO_SLUG
            - echo '"$BITBUCKET_TAG"'
            - export NEW_IMAGE_NAME=$IMAGE_NAME:$BITBUCKET_TAG
            # authenticate with the Docker Hub registry
            - docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_PASSWORD
            # pull the image down
            - docker pull $IMAGE_NAME
            # retag the image using the git tag
            - docker tag $IMAGE_NAME $NEW_IMAGE_NAME
            # push the image back
            - docker push $NEW_IMAGE_NAME
```


Answers:
author: IT
body: Found the problem, forgot to add \`--tags\` to the git push command.

Sorry for asking such a stupid question


Tags: bitbucket-cloud

cloud
How to Secure Webhook using basic authentication
Asked by Azar Mohamed:

My endpoint uses basic authentication (a username and password), I want to use this method to secure my webhook. When the webhook data is sent, the authorisation header will be included in the HTTP request.

I don't see any option to send basic auth token to webhook. I can only see \`Secret\` field while creating the webhook.

Kindly help me how to incorporate Basic Authentication for bitbucket webhook


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

The only way you can provide credentials is to include them in the webhook URL as follows:

<https://username:password@webhook-url>

Please be mindful that if the username is an email address, it will not be supported due to this bug: <https://jira.atlassian.com/browse/BCLOUD-14773>

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

webhook
Why Does Bitbucket Ask for Two Factor
Asked by Chase Barrett:

Our organization uses Microsoft SSO with MFA to log into our cloud Atlassian products, so there should be no need for Atlassian's additional Two Factor authentication. In the past, I've been able to authenticate with both my browser and my phone no problem. But about a week ago, my phone logins started asking me for an OTP from my authenticator (???) and I'm unable to get in with my phone. From my browser, I can see that Two Factor is disabled for my account, so I'm not sure why I'm seeing this. Any thoughts why the Two Factor screen would show up spontaneously for just my phone login?


Answers:
author: Ben
body: Hi Chase,

I've opened a Bitbucket Cloud support ticket on your behalf, as you are a member of a Premium workspace and therefore are entitled to Premium-level support from our team.

Please check your email for further troubleshooting.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
When will Bitbucket Data Center support Git 2.43.x?
Asked by Jacob Nowjack:

The current version of Bitbucket Data Center that we're using, v8.15.1, and the most recent Bitbucket Data Center release as of writing this, v8.16, both don't support the latest Git release, 2.43.0. The [Supported Platforms](https://confluence.atlassian.com/bitbucketserver/supported-platforms-776640981.html#Supportedplatforms-dvcsDVCS) page shows it supporting just 2.41.x - 2.42.x and the server fails to start if using Git 2.43.0. Is there a timeline for when Bitbucket Data Center will support this latest Git release?


Answers:
author: Jacob Nowjack
body: I found the issue tracker here which says it's In Progress: <https://jira.atlassian.com/browse/BSERV-19079>


author: Brandon Barlow
body: Also curious about this as the ubuntu git team has dropped all git versions for Ubuntu 18 prior to 2.43 : [https://launchpad.net/\~git-core/+archive/ubuntu/ppa?field.series_filter=bionic](https://launchpad.net/~git-core/+archive/ubuntu/ppa?field.series_filter=bionic)


Tags: bitbucket-server

git

server
integration with jenkins via webhook getting access denies
Asked by Govind Vinjamuri:

tried adding username:password to test in jenkins/bitbucket-webhooks

but still getting access denied

any help is appreciated


Answers:
author: Theodora Boudale
body: Hi Govind,

Where exactly do you see this Access denied error? Have you enabled history for the webhook on Bitbucket website and does this error show in the log for this webhook?

If so, could you perhaps share the following details?

* the last two letters of the workspace id and repo name (or any other combination that help me identify the repo from the ones you have access to)
* the date and time these events were triggered

I can then check our webhook logs of this repo for more details about the error you are seeing.

If you don't feel comfortable sharing that here, you can also create a ticket with the support team (which will be visible only to you and Atlassian staff) and share the repo details there. You can create a ticket via <https://support.atlassian.com/contact/#/>, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product. When you are asked to provide the workspace URL, please make sure you enter the URL of the workspace that is on a paid billing plan to proceed with ticket creation.

If you don't see the error in the webhook log of Bitbucket, can you please explain where you add the credentials and where exactly you see this error?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
RepositoryDeletedEvent event is not listening for onRepositoryDeletedEvent
Asked by Singa Selva Sankar:

I have a plugin to do some activity on the following events.

1. Repository Creation
2. Branch Creation
3. Branch Deletion
4. Repository Deletion

For Repository Creation, I am using RepositoryCreatedEvent with onRepositoryCreatedEvent event listener

for branch creation, I am using BranchCreatedEvent with onBranchCreatedEvent event listener

for branch deletion, I am using BranchDeletedEvent with onBranchDeleteEvent event listener

all the above the listeners are working as expected, I was able to perform my activity once the event listener listened. however for the repository deletion, I am using RepositoryDeletedEvent with onRepositoryDeletedEvent event listener, this is not working for me.

I am in bitbucket dc 8.9.4, amps version is 8.10.1

any help is much appreciated.


Answers:
author: Singa Selva Sankar
body: onRepositoryDeletedEvent - I had to remove the contructor and call the event listener, this resolves my issue.


Tags: bitbucket-server

data-center

delete

event

repository

server
permission denied
Asked by Mohamed Bachir Miguil:

Hello, I want to "git push" after a "git commit", but I have this message :

git@bitbucket.org: Permission denied (publickey).  
fatal: Could not read from remote repository.

Please make sure you have the correct access rights  
and the repository exists.   

Here are the steps I have taken to solve this problem :   
1. create an ssh-key   
2. added the public key to bitbucket   
3. edited \~/.ssh/config file to add the path of my private key   

I have also explored different solutions but didn't success to solve this issue. thanks for the help


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

Could you please share the following info so I can better help you?

**1.** What are the permissions of the .ssh directory, the public key file, and the private key file on this computer?

**2.** Could you please push using the following command and share the full output of the command here?

```
GIT_SSH_COMMAND="ssh -vvv" git push
```

This command will print verbose output so we can check which key is being offered, if the options from \~/.ssh/config are applied, and any additional errors.

Please make sure to sanitize any private/sensitive data in the output (e.g. workspace-id, repo name) before sharing.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Long time for transfer or not received Accept Repository Transfer Email
Asked by Pascal Quintin:

Hello,

I started a repository transfer 15h ago and I still not have received the email to accept the transfer.

I have access to both repositories (source \& target). On the target repo, we are 2 with the access. Neither my colleague or my self have received the email.

The repo is about 104MB. Should the transfer take more than 15h?

When the email notification for the acceptance should be triggered?

Kind regards,

Pascal


Answers:
author: Theodora Boudale
body: Hi Pascal,

I checked our email logs just in case your email address was on our suppression list, but it is not there. I can also see an email about a transfer request that was sent to your email address and it was delivered to your mail server.

If you still haven't received it I would suggest checking the Spam folder in case the email ended up there, and also if any filters on your email account would make this email skip your inbox. If you still cannot find it, I would suggest reaching out to the administrator of your mail server to help you figure out why the email didn't make it from your mail server to your Inbox. Emails about repo transfers are sent from notifications-noreply@bitbucket.org.

Kind regards,  
Theodora

comments: author: Pascal Quintin
body: Thanks for your help Theodora.

In fact, even if I have access to the workspace, only the owner received the message and the email went to his spam folder.

Regards,

Pascal


author: Aron Gombas _Midori_
body: When you transfer the ownership, I think it doesn't depend on the repo's physical size. It just changes the ownership.

In our practice, the email is delivered usually in minutes (worst).


Tags: bitbucket-cloud

cloud
"We couldn't log you in" error message
Asked by miguelromanos:

Hello,

I've been trying to access bitbucket in different browsers and using incognito mode but I'm always getting this error message.

I guess, after scrolling the community questions and being able to login in atlassian.com that I already have a bitbucket account that is disabled, so I would need it to be re-enabled if possible.

Related topic: <https://community.atlassian.com/t5/Bitbucket-questions/Bitbucket-quot-We-couldn-t-log-you-in-quot/qaq-p/2473811>

Thank you!


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

Welcome to the community!

It looks like your account was dormant; hence, you could not log in. I have reactivated your account, so please try again and let me know how it goes.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
Permission denied (publickey) when trying to connect to server from BB Pipeline
Asked by Mathew Paret:

I am getting "Permission denied (publickey)" when trying to connect to server from BB Pipeline".

I am using BB generated SSH-Key for which the public key I have added to \`./ssh/authorized_keys\`.

In the same file I have configured my own public key that I use to connect from my laptop.

Both for the same user.

When I connect from my laptop using the key generated on my laptop it works.

But when BB Pipeline tries to connect it doesn't.


Answers:
author: Patrik S
body: Hello [@Mathew Paret](/t5/user/viewprofilepage/user-id/772941) ,

thank you for reaching out to Community!

Could you share with us what command you are using to connect to the remote server? Is it a direct ssh command in your script, or a pipe like the [atlassian/ssh-run](https://bitbucket.org/atlassian/ssh-run/src/master/) pipe?

Additionally, would you please include the following SSH command in your pipeline

```
ssh -Tvvv <your server IP/domain>
```

then trigger the pipeline again and share with us the full log output? This will contain verbose logs for the SSH connection and we will have more information about which key SSH is attempting to use.

Please make sure to sanitize the logs to remove any sensitive information (such as the IP address of your server), as this is a public forum.

Thank you, [@Mathew Paret](/t5/user/viewprofilepage/user-id/772941) !

Patrik S


Tags: bitbucket-cloud

cloud
Can we show up the repository is being updated in the Pull Request?
Asked by Nhat Dinh Cong:

Can we show up the repository is being updated in the Pull Request?  
In the Pull Request interface, we do not know which repository is being updated. Can we show up this information somewhere in the Bitbucket? especially in the Pull Request interface. Thank you!


Answers:
author: Syahrul
body: G'day, [@Nhat Dinh Cong](/t5/user/viewprofilepage/user-id/5266224)

Welcome to the community.

Could you provide more details about the enhancements you'd like to see in the Pull Request feature? By "updating", are you referring to a recent commit made on the source branch or the entire repository?

Understanding your expectations and use case will be beneficial in formulating a feature request or suggesting an available workaround, if any.

Regards,

Syahrul

comments: author: Nhat Dinh Cong
body: Hi [@Syahrul](/t5/user/viewprofilepage/user-id/744536) I would like to show up this info below (I think we called it as "repository name"):  
For example: I am working on this Pull Request:  
![pic1.png](https://community.atlassian.com/t5/image/serverpage/image-id/295890i79E73182575DCEB6/image-size/large?v=v2&px=999 "pic1.png")  
I don't know the name of the parent folders on this repository. Can we show this information somewhere in the Pull Request?


author: Nhat Dinh Cong
body: Hello, any news?


author: Syahrul
body: Hey [@Nhat Dinh Cong](/t5/user/viewprofilepage/user-id/5266224)

Apologize for the delay. I believe you are looking at the following existing feature requests:

<https://jira.atlassian.com/browse/BSERV-11725>

Please **Vote** and **Watch** them.

Regards,  
Syahrul


author: Nhat Dinh Cong
body: Thank you so much for the information


author: Nhat Dinh Cong
body: Do you have the rough plan on this suggestion? When it can be done?


author: Syahrul
body: Hey [@Nhat Dinh Cong](/t5/user/viewprofilepage/user-id/5266224)

Apologize for this, I just realized that you are on Bitbucket server. For your information, we're simplifying our self-managed offerings and sharpening our focus to our cloud and Data Center products. This means we've discontinued new feature development in our server product line.

<https://www.atlassian.com/migration/journey-to-cloud>

Regards,  
Syahrul


Tags: bitbucket-server

server
Fisheye Multiple SVN Subfolders for One External Repo?
Asked by Nick Weiler:

Is it possible to add an external repo to Fisheye that contains mulitple subfolders from the same directory tree? For example, say I have the following structure:

A\\  
A1\\  
A2\\  
A3\\

If A2\\ is exceedingly large and I want to exclude it, can I add repo A such that in pulls in particular subfolders so that I get:

A\\  
A1\\  
A3\\

<br />

Alternatively, is it possible to add repo A and then manually exclude A2 instead?


Answers:
author: Foong
body: Hi Nick,

Yes, you can add the repo A and exluce A2 at *Administration \> Repository Settings \> Repositories \> A \> Include/Exclude Paths*

For more information, please refer to <https://confluence.atlassian.com/display/FISHEYE/Include+Exclude+Paths>


Tags: fisheye-crucible-administration
How to mark defects as closed on crucible
Asked by Rahul Aich [Nagra]:

Hi Guys

I am new to using crucible.

I observed that we can flag a comment as a defect (and further classify it using the drop downs). However, once the author fixes the defects how does he mark that defect as completed/done/closed.

At the moment we are simply converting the defect to a comment to mark it as completed.

The issue is that if we leave the defect as it is (even after fixing it) the comment search utility brings it up as a defect (although it has now been fixed)

Is it something configurable?

Rahul


Answers:
author: Thomas Waldecker
body: This is now possible in Crucible 4.2:

<https://confluence.atlassian.com/crucible/crucible-4-2-release-notes-847744868.html>


author: Foong
body: Hi Rahul,

It seems that you are looking for this feature request: <https://jira.atlassian.com/browse/CRUC-6160>


author: Rahul Aich [Nagra]
body: Any comments guys?

Rahul


author: Rahul Aich [Nagra]
body: Any comments guys?

Rahul