youngmon/atlassian-qna huggingface dataset:
not able to receive verification email
Asked by Raminta Zmuidinaite:

I am setting up an account for a colleague and he is not able to receive the verification email. Could you please help identify the problem?


Answers:
author: Syahrul
body: Hey [@Raminta Zmuidinaite](/t5/user/viewprofilepage/user-id/4966694)

G'Day!

I have raised a support ticket on behalf of you so we can further assist you on this issue.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
In what order to migrate Bitbucket-Server and Jira-Server to Cloud?
Asked by Tom Braat:

Hi All,

For a customer I'm assessing the migration complexity to cloud of his environment. On the support pages I have found a lot of information about Jira+Confluence migration and in what order to execute. I haven't found yet in what order/sequence to execute a Jira+Bitbucket to cloud, hopefully you can give me some advise.

In the customer environment there is Jira+Bitbucket server products and we would like to migrate them to the cloud, which one should be migrated first, or should I take care of intermediate steps when migrating these products to cloud?

Thanks!


Answers:
author: Nic Brough -Adaptavist-
body: It does not really matter which way around you do these two. It's the same amount of work either way.

comments: author: Tom Braat
body: Thanks [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454) ! One question to double check my approach;

In the meanwhile I was checking with my peers and one stated that it is important to first migrate Bitbucket to Cloud, otherwise the link between Jira and Bitbucket would disappear if you would do Jira first. Any comment on that?


author: Nic Brough -Adaptavist-
body: You are going to have problems with links whichever way around you do it.

We have done hundreds of migrations of migrations to Cloud and when it is not massive, had no problems doing one or the other first.

(blatant plug for my employer, of course)


author: Tom Braat
body: [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454) thank you! Any advice on preventing problems with linking, or just accept and resolve after migration?


author: Nic Brough -Adaptavist-
body: Nothing specific, just build the "accept and resolve" into your migration plan. One minor thing that makes it a little easier is to change the application links at the beginning of the migration rather than after it.

On the Jira side, you might also want to find potential problems before you migrate. It's easy enough if you have database access - you can read the tables customfieldvalue, jiraissue and jiraaction (they hold the text of text and URL custom fields, the environment and description fields, and the comments, respectively, so searching them for your bitbucket URL might be useful, in case people have put links in instead of using the application link)


Tags: bitbucket-server

cloud-migration

jira

migration-customer-care

server
???????????????? About setting the target branch for merge
Asked by eatcoco:

????????????????????????????????????????

?????????????????????????????????????????

???????????????

When I create a pull request, the target branch will be always the development branch which I set at Branching model (Repository settings \> Branching model).

Is it possible to set the target branch to be a parent branch ("From branch" when creating branch) automatically?


Answers:
author: Syahrul
body: Hey [@eatcoco](/t5/user/viewprofilepage/user-id/4938452)

G'Day!

We don't have the feature to set the Pull request target branch in the Bitbucket cloud at this moment. However, we do have an existing feature request on this, and I highly suggest you **Vote \& Watch** the feature request so that you'll receive an update whenever we have any at:

[Branches: set different default destination branch](https://jira.atlassian.com/browse/BCLOUD-9368)

Cheers,  
Syahrul

comments: author: eatcoco
body: Thanks for your reply.  
I did vote!  
I hope it will be applied as soon as possible.


Tags: bitbucket-cloud

branch

cloud

pull-request
Getting a deployment issue list using API
Asked by Robert Esposito:

I am trying to the list of JIRA tickets that a deployment is addressing. On the Deployment page, there is a tab where I can select the linked JIRA issues, which can be seen in the screenshot below.  

![deployment_pic.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/201784i26751DA9A2AB537E/image-size/large?v=v2&px=999 "deployment_pic.jpg")  

I am trying to use the Bitbucket cloud API to list these issues in a report, but I can't seem to figure out how to get the issues from the API. When I do a get request of the deployment using the url:

"<https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/deployments/{deployment_uuid>}"  

I get the information about the deployment itself, but not the connected issues. Is there a way to get these using the API?


Answers:
author: Syahrul
body: Hey [@Robert Esposito](/t5/user/viewprofilepage/user-id/4453803)

G'Day!

I believe we don't have an API endpoint to get the Jira issue key from the deployment tab at this moment. Bitbucket only creates a link to the Jira issue, and we don't store any Jira information on our end; hence there's no endpoint to fetch this information.

I would suggest checking this on the Jira API side to see if it's possible:

[Development Information](https://developer.atlassian.com/cloud/jira/software/rest/api-group-development-information/)

Cheers,  
Syahrul

comments: author: alemseged
body: [@Robert Esposito](https://community.atlassian.com/t5/user/viewprofilepage/user-id/4453803) I was looking for the same thing, have you figure it out?


author: David Berclaz
body: Hi [@Robert Esposito](/t5/user/viewprofilepage/user-id/4453803),

There is no magic and here is a recap of what we have experimented at Apwide regarding Deployment Management with Jira and Bitbucket:

[DevOps way to track CI/CD Deployments and Agile Release Management](https://community.atlassian.com/t5/Jira-Software-articles/DevOps-way-to-track-CI-CD-Deployments-and-Agile-Release/ba-p/2165788)

Feel free to contact my colleague Guillaume if you need more info.

Cheers,

David


Tags: api

bitbucket-cloud

cloud

deployment

issue

issue-link

jira
NodeJS to Heroku template for bitbucket-pipelines.yml
Asked by Mehran Ishanian:

Hi, could anyone advise what is the best practices to deploy NodeJs to the Heroku template for bitbucket-pipelines.yml, please?


Answers:
author: Patrik S
body: Hello [@Mehran Ishanian](/t5/user/viewprofilepage/user-id/4299231) ,

Thank you for reaching out to Atlassian Community!

At this moment we have no official template to deploy a NodeJS application to Heroku using Bitbucket Pipelines, but I found the article below with detailed instructions that might be of help in your case :

* <https://medium.com/finnovate-io/deploy-code-to-multiple-heroku-environments-with-bitbucket-pipeline-3d64c86887d8>

Thank you [@Mehran Ishanian](/t5/user/viewprofilepage/user-id/4299231) ,

Kind regards,

Patrik S

comments: author: Mehran Ishanian
body: Thanks Patrik


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

node.js
Authentication issue with API
Asked by Giovanni Cappellini:

Hello, sorry for reopening this thread. But I have a strange issue.

```
curl -L -X GET --user username:password http://api.bitbucket.org/2.0/repositories/<workspace>/
```

On Centos 7 this gives me:

```
Bitbucket Cloud recently stopped supporting account passwords for API authentication.
See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
App passwords are recommended for most use cases and can be created in your Personal settings:
https://bitbucket.org/account/settings/app-passwords/
For more details on API authentication methods see our documentation:
https://developer.atlassian.com/cloud/bitbucket/rest/intro/#authentication

But on Fedora and Ubuntu works.
```

I need to make it work on CentOS 7, can you help me?


Answers:
author: Theodora Boudale
body: Hi [@Giovanni Cappellini](/t5/user/viewprofilepage/user-id/4966194),

We deprecated Bitbucket Cloud account passwords for Bitbucket API and Git activity earlier this year:

* <https://community.atlassian.com/t5/Bitbucket-articles/Announcement-Bitbucket-Cloud-account-password-usage-for-Git-over/ba-p/1948231>

You will need to generate an app password for the Bitbucket Cloud account you use to authenticate with:

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

and then use your Bitbucket Username + app password for authentication in API calls.

The output on Centos is expected if you are using your account's password.

The strange thing is that you mention that it works in Fedora and Ubuntu.

* Are you executing these API calls with curl from a terminal application in all 3 operating systems?
* Are you passing the same credentials for username and password in all 3 cases?
* I checked the Bitbucket Cloud account that has the same email as your community account, but I see that it doesn't have access to any repos. Are you facing this issue with a different Bitbucket account?

Just a heads up, I moved your question to a new post. It's best to create a separate question if you need assistance with an issue, as it can become difficult and confusing to troubleshoot multiple users' issues in one post.

Kind regards,  
Theodora

comments: author: Theodora Boudale
body: One more thing I forgot to mention:

We display this message that you saw in Centos when an incorrect app password is used for authentication (and not only when someone uses their password).

In case you are already using app passwords, please make sure you provide the correct value.

If the issue persists, please leave an answer to the 3 questions I asked in my previous reply and we can further investigate.

Kind regards,  
Theodora
Question about Windows Runner ID
Asked by Kevin Huu Tran:

Hi,

I have created the Windows Runner on my machine.

I noticed that every time the pipelines run, it automatic clone the repo to

[C:\\Windows\\System32\\atlassian-bitbucket-pipelines-runner\\temp\\"RunnerID"\\"SomeDirectory"](https://bitbucket.org/kevintran1308/workspace/projects/TES)

and that got deleted after Runner finished.

Does anyone know how the "SomeDirectory" created?

I noticed that every time the Runner is online, it created the new directory with the name contain a lot of number.

For example: 1654614909794 or 1654895634439

I want to access to that folder and execute the file at that time it got cloned to that.

Thank you


Answers:
author: Norbert C
body: Hi Kevin,

Thanks for reaching out to Atlassian Community, my name is Norbert and I'm a Bitbucket Cloud Support Engineer, it's nice to meet with you!

I'd like to inform you that the SomeDirectory gets created based on the EPOCH time, once the build is getting started.

For example, the 1654614909794 means Tuesday, 7 June 2022 15:15:09.794. You can find an epoch converter on the following site: <https://www.epochconverter.com/>

Please let me know if you have any further question?

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


Tags: bitbucket-runners
git version in bitbucket
Asked by anil kumar K:

Hello,

we wanted to use git switch which is available in git version 2.23. However bitbucket pipeline us using git version 2.17.

How can this be upgraded?

Regards

Anil


Answers:
author: Robert Wen_ReleaseTEAM_
body: Hello [@anil kumar K](/t5/user/viewprofilepage/user-id/4451071)

Information about the version in Bitbucket is here: <https://support.atlassian.com/bitbucket-cloud/docs/what-version-of-mercurial-andor-git-do-you-support/>

You may want to open a support ticket with Atlassian.

comments: author: anil kumar K
body: Thanks for the response. We have opened a service ticket.


Tags: bitbucket-cloud

cloud
The email is not received for bitbucket repository access invitation.
Asked by Ranjan Adhikari:

The email address I am using receives mail and invitations from other applications. Is there a bitbucket settings workaround on this?


Answers:
author: Daniel Eads
body: Hi [@Ranjan Adhikari](/t5/user/viewprofilepage/user-id/2777992) ,

Your email address was on an internal suppression list on our side, as our mail service received a 550 5.4.1 error when we tried to send email previously. I've cleared this error out on our end and additional emails should go through now. You'll need to have the repo owner send the invitation again.

In order to prevent this problem from happening again though, you can have an Exchange Admin at your company [follow the steps on this article to keep Atlassian Cloud emails from getting bounced by Office365's filter](https://community.atlassian.com/t5/Jira-articles/Unblocking-Office365-emails-for-Atlassian-Cloud/ba-p/1870108). The error we had on our side was consistent with the problem listed in that article.

Cheers,  
Daniel
SVN to GIT
Asked by Ben Hooper:

We are trying to move an on-premise SVN repo to an on-premise GIT report (Bitbucket).

Atlassian have instructions: <https://www.atlassian.com/git/tutorials/migrating-prepare>

We are using a Debian 11 server to do the work, however we do not know what version of Java to use.

If anyone knows the correct version of Java that would be much appreciated.

Regards


Answers:
author: Robert Wen_ReleaseTEAM_
body: Hello [@Ben Hooper](/t5/user/viewprofilepage/user-id/4965843) ! Welcome to the Atlassian Community!

System requirements for Bitbucket are here: <https://confluence.atlassian.com/bitbucketserver/supported-platforms-776640981.html>

In general, you should be good with either Java 8 or Java 11.

Hope this helps!


Tags: bitbucket-server

java

server

svn
pipe: atlassian/bitbucket-build-statistics:1.0.1
Asked by Auxin:

- pipe: atlassian/bitbucket-build-statistics:1.0.1 variables: BITBUCKET_USERNAME: "\<string\>" BITBUCKET_APP_PASSWORD: "\<string\>" # WORKSPACE: "\<string\>" # Optional # REPO_LIST: "\<string\>" # Optional # FILENAME: "\<string\>" # Optional # BUILD_DAYS: "\<number\>" # Optional # DEBUG: "\<boolean\>" # Optional


Answers:
author: Patrik S
body: Hello [@Auxin](/t5/user/viewprofilepage/user-id/4965624) ,

Welcome to Atlassian Community!

I noticed you have included an example of the atlassian/bitbucket-build-statistics pipe usage in the description of your questions, but I was not able to understand what is your actual question.

Could you please give us more details about the issue you are facing or the question you have?

Thank you, [@Auxin](/t5/user/viewprofilepage/user-id/4965624)

Kind regards,

Patrik S


Tags: bitbucket-cloud

build

cloud

statistic
Integrate GitLab server with Bitbucket via oAuth is not working
Asked by Panagiotis Groidis:

Hi Everyone,

We need to import some projects from BitBucket to Gitlab 15.0.2-ee and as per the document <https://docs.gitlab.com/15.0/ee/integration/bitbucket.html> We created the Consumer but I cannot find out what value should I enter for CAllback URL. So back in instructions,

    Callback URL: (Required in GitLab versions 8.15 and greater) The URL to your GitLab installation, such as https://gitlab.example.com/users/auth

we tried with "our" gitlab.example.com/users/auth or just gitlab.example.com but once we are trying to login via BitBucket button we get

```
Could not authenticate you from Bitbucket because "Unauthorized client: invalid oauth client credentials {"error description": "invalid oauth client credentials", "error": "unauthorized client"}".
```

If we try to skip the callback url, is not work at all. Can someone please help us on that?

Thank you


Answers:
author: Panagiotis Groidis
body: Hi,

Is anyone involved with this?

Thank you


Tags: bitbucket-cloud

cloud
Setting up Bitbucket datacenter(clustered) fresh installation on Windows platform
Asked by vramanujam:

Hi ,

I want to Install/setup Bitbucket datacenter (clustered) on windows platform . Please provide me with any kind of document , i couldn't find any detailed atlassian document for it


Answers:
author: Robert Wen_ReleaseTEAM_
body: Hello [@vramanujam](/t5/user/viewprofilepage/user-id/4761026) ! Welcome to the Atlassian Community!

The documentation you seek is here

<https://confluence.atlassian.com/bitbucketserver/install-or-upgrade-bitbucket-859468469.html>


author: Bastian Stehmann
body: Hi [@vramanujam](/t5/user/viewprofilepage/user-id/4761026) ,

please re-think about installing Bitbucket on Windows.

Windows is not supported any more, the 7.21.x releases are the latest that support Windows.

comments: author: vramanujam
body: Hi Bastian .

I am Installing 7.21 version of Bitbucket , but i found document only for Server , but didn't find any thing for datacenter(clustered) installation/setup on windows with all datacenter architecture just like JIRA . Is there any such sort of document available for windows platform


author: Bastian Stehmann
body: Hi [@vramanujam](/t5/user/viewprofilepage/user-id/4761026) ,

keep it mind, that you will never be able to update your Bitbucket to a new major version, even if you install 7.21.x now.

In regards to documentation, this might be what you need.

<https://confluence.atlassian.com/bitbucketserver0721/clustering-with-bitbucket-1115666842.html>


Tags: bitbucket-server

server
Bitbucket API repository not found
Asked by Pei Liu:

I am using API to download some commits and the ci/cd build information for some projects. However, I always get the response in the Repository not found as the following after some were downloaded successfully.

Repository not found {#toc-hId--552906978}
------------------------------------------

The requested repository either does not exist or you do not have access. If you believe this repository exists and you have access, make sure you're authenticated.

Return to the previous page or go back to your [dashboard](https://bitbucket.org/dashboard/overview).

How can I resolve this issue?

Best


Answers:
author: Patrik S
body: Hello [@Pei Liu](/t5/user/viewprofilepage/user-id/4963147) ,

Welcome to Atlassian Community!

As the error message states, this usually happens when the credentials you are using do not have access to the repository you are trying to access. Could you please confirm that the account you are using for authentication indeed has access to the content you are trying to download? Are you able to access this content through the UI? Also, in case you are using an [app password](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/) for authentication, you can try creating a new one with the full permissions checked and try again.

If that does not work, could you please share with us the exact full command you are executing that is failing to run? Does it only fail for a specific repository, and is it always the same repository that throws the error?

Thank you, [@Pei Liu](/t5/user/viewprofilepage/user-id/4963147) .

Kind regards,

Patrik S


Tags: bitbucket-cloud

cloud
Error adding SSH Key: "Someone has already added that key as an access key to a repository.
Asked by Francisco Gonzalez:

Hi,

I added my SSH Key to a repo before adding it to my personal settings. Then I removed from repository and tried to add to Personal Settings SSH Keys, but I'm getting the message in the title.

I have seen similar issues here, but I just created this account, and have got just one repository. So not sure where the conflict key might be.


Answers:
author: Syahrul
body: Hi [@Francisco Gonzalez](/t5/user/viewprofilepage/user-id/4965271)

G'Day!

Can you re-generate the SSH key for your personal account if you are not using it elsewhere? If you can't, then we may need to create a support ticket to locate the current public SSH key.

Let me know if you wish to use the current public SSH key.

Cheers,  
Syahrul

comments: author: Francisco Gonzalez
body: Hi,

Correct me if I'm wrong, but may the issue be that I am already using this SSH Key in a different account? i.e. SSH Keys must be unique in the whole bitbucket and not per account?

In my case, I just went for HTTP url using app token.

Thank you for your reply!

Cheers


author: Syahrul
body: Hey [@Francisco Gonzalez](/t5/user/viewprofilepage/user-id/4965271)

Yes, you are right. SSH key can only be used on a single account/repositories, so if you already use it somewhere else, you can't re-use it.

The workaround is to find the SSH and remove it or re-generate a new public SSH key if you can't locate it.

Using HTTPS is also a workaround to avoid using the same SSH key.

I hope this helps.

Cheers,  
Syahrul
impossible to reduce repo size
Asked by Xtend:

Hello,

I exceeded the repo size of 4gb , I did a bfg clean up but the push is rejected

! \[remote rejected\] master -\> master (pre-receive hook declined)

I appreciate your help

Regards


Answers:
author: Xtend
body: still no news from the support

comments: author: Theodora Boudale
body: I'm just posting an update that we are working on this issue here: <https://community.atlassian.com/t5/Bitbucket-questions/Repo-size-exceeds-4GB-cant-push-fixes/qaq-p/2052397>


author: Mikael Sandberg
body: Hi [@Xtend](/t5/user/viewprofilepage/user-id/725309),

Someone from the Atlassian support team that is on here should be in contact with you in the near future.

comments: author: Xtend
body: Hello,

Thank you , Okay i'll wait for their ping because the repo is gone from 4gb to 6gb


Tags: atl-rvw

bitbucket-cloud

cloud
How do I Add Permissions?
Asked by Stephen Boxerman:

Ok, I'm new to this, so I'm gona sound like and idiot. I'm using UE4 and want to have multiple people work on the project without having to swap a external HHD. I've got GitHub all set up with Source Tree, but now i don't know how to let others access the repo. HELP!!!!!!


Answers:
author: Johannes Kilian
body: I think you should learn the basics of git first....

git itself does not have any user access control - therefore SourceTree does not have any user access control: basically everybody who has physical access to your should repository be able to clone it.

Now you can introduce some restrictions to the storage location of your repository: if it's locally stored you might have some restriction on file acces level (but this is not common with git AFAIK). That's where repository hosting sites enter the game: github or Bitbucket.org (to name 2 public gitrepository hosting services) do offer user access control. You cannot access the repositories there directly on tfilesystem level but you have to use a web-interface. Within the web-interface the user access control is implemented.

So to answer your question in short: You cannot use SourceTree to grant access on your Github hosted repository - you have to do this within the github-webpage. Your question is not a SourceTree question but a github question.

After setting the desired permissions on github, everbody with corresponding permissions can work with the repository (i.e. cloning using the github repository URL ...)


Tags: permission
Activation Mail not receiving at ajeet.singh@fci-ccm.com
Asked by Anish Raut:

Hi,  
When i creating account in atlassian but verification mail not receiving at [ajeet.singh@fci-ccm.com](mailto:ajeet.singh@fci-ccm.com). Please help to resolve the problem.  
Thanks,


Answers:
author: Nic Brough -Adaptavist-
body: Check your email server for blocks, blacklists and spam. Atlassian servers generally do try to send mail.