youngmon/atlassian-qna huggingface dataset:
How to clone repository with submodules
Asked by Francisco Perez Moreno:

I have a repo with submodules. I need to access it via https.

The .gitmodules file has this format:

```
[submodule "submodules/sm1"]
path = submodules/sm1
url = https://bitbucket.org/WORKSPACE/REPO
```

So if I git submodule update --init, it asks me for a user name (which disallows this from being a non-interactive session, which is pointless)

If I put the user within the url (as mentioned in <https://support.atlassian.com/bitbucket-cloud/docs/using-app-passwords/>), then I can use GIT_ASKPASS to do a git clone in a scriptable way.

But I don't want to use to put a specific and concrete user within the url in a submodule.

Is there a way to keep the .gitmodules file clean without any ad-hoc username, so I can share a repo between several developers; and also, clone it with its submodules in a scriptable way? None of the previous messages work, they always end up in git complaining about not having access rights.


Answers:
author: Theodora Boudale
body: Hi Francisco,

Is it a requirement to use HTTPS?

If so, please let me know, I'll need some time to look into it.

In case you are ok with using SSH instead, you can use an SSH URL for the repo in the .gitmodules file

```
[submodule "submodules/sm1"]
    path = submodules/sm1
    url = git@bitbucket.org:WORKSPACE/REPO.git
```

SSH URLs do not include a username and authentication is done with SSH keys. This would require users to [set up SSH Bitbucket Cloud](https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/) (if they haven't already), and then authentication for each user will be done with the SSH keys each user has on their own computer.

After setting up an SSH, each user can create a file named config in their \~/.ssh folder with the following configuration, to ensure that the SSH key they generated is used when they connect to bitbucket.org:

```
Host bitbucket.org
    HostName bitbucket.org
    User git
    IdentityFile /Users/myUser/.ssh/id_rsa 
    IdentitiesOnly yes
```

where**/Users/myUser/.ssh/id_rsa** is the path to the private SSH key in the user's computer.

If you're using a script, you would need to have an SSH key pair on the machine where the script is running. If the script is used to only clone/pull, you could set up Access keys: <https://support.atlassian.com/bitbucket-cloud/docs/add-access-keys/>

Otherwise, you would need the SSH keys of a user with access to the repo.

If you have any questions, please feel free to let me know.

Just a heads up, I moved your post to a new question. It's best to create a separate question if you need assistance with something, as a new question will have visibility to the rest of my team if I'm out of office, and also because a certain question can become difficult to follow if we try to troubleshoot multiple users' issues.

Kind regards,  
Theodora


Tags: bitbucket-cloud
git cherry pick command confuses bitbucket
Asked by sanjaytest:

Here is a scenario that looks like a defect in bitbucket.

Have 2 branches in bitbucket repo

1. develop 2. release

One commit that was present in develop branch, i used the git cherry pick command to push to release branch. Once that is done, the same commit is now present in release and develop both.

Even after this, if i raise a pull request from develop to release the same commit still shows up in the differences.

I think this is a defect on bitbucket side, and should be fixed. Happy to hear what others think about this.


Answers:
author: Theodora Boudale
body: Hi [@sanjaytest](/t5/user/viewprofilepage/user-id/5073623) and welcome to the community.

A few months ago we changed our diff algorithm from what we call a '3-way' diff to a 2-way 'three-dot' diff:

* <https://bitbucket.org/blog/improving-performance-on-complex-diffs>

The previous diff algorithm included changes in the destination branch. The new diff algorithm does not reflect changes made to the destination branch since the source branch was created from the destination branch. This change allowed us to improve performance on complex diffs.

If you want to see changes made to the destination branch, you can simply merge the destination branch into the source branch. The blog post I shared has instructions on how to do so in the section "How to see changes to the destination branch in a pull request".

We have a request in our issue tracker for offering the option to preview the previous type of diff on demand:

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

You can add your vote and comment there to further express your interest.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
No longer email notifications after reenabling my email
Asked by Bilel Ghorbel:

Hi,

I used toget email notifications from bitbcuket about watched PRs. After disabling and reenabling my email. I no longer get these emails. I filtered all the emails that are recieved from ''pullrequests-reply@bitbucket.org'' and thery all date from the time I disabled my email. What can be done to get the ontifications again?

Thanks in advance


Answers:
author: Theodora Boudale
body: Hi [@Bilel Ghorbel](/t5/user/viewprofilepage/user-id/5073619) and welcome to the community!

I can see that you created a support ticket for this issue. Your email address was placed in a suppression list because we attempted to send you an email while the email address was disabled and we received a hard bounce response from your mail server, indicating permanent failure. The email address then gets placed in a suppression list, as we no longer try to resend to non-existing emails.

We have removed your email address from this list, so you should be able to receive notification emails now. Please feel free to let us know if the issue is resolved and if you need anything further.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Automatic syncing branches with master
Asked by Jordan Fox:

I am wondering if it is possible by configuring the branching model of a repo, outlined [here](https://confluence.atlassian.com/bitbucketserver/branches-776639968.html#Branches-model). Whether we can configure this to automatically merge master into one or many development branches on a schedule or whenever master is updated? Thanks.


Answers:
author: Syahrul
body: Hey [@Jordan Fox](/t5/user/viewprofilepage/user-id/5073436)

Welcome to the community.

The documentation you shared is for the Bitbucket server only and does not apply to the Bitbucket cloud.

[Bitbucket cloud Branching model](https://support.atlassian.com/bitbucket-cloud/docs/branch-a-repository/#The-branching-model)

That said, Bitbucket cloud doesn't have the feature to merge branches automatically. However, we do have an existing feature request on this that I highly suggest you **Vote** on and **Watch**so that you'll receive an update whenever we have any at:

[Automatic branch merging for Bitbucket Cloud](https://jira.atlassian.com/browse/BCLOUD-14286)

Cheers,  
Syahrul

comments: author: Jordan Fox
body: Hey [@Syahrul](/t5/user/viewprofilepage/user-id/744536) Thanks for getting back to me. I was not aware there are two separate services and sets of documentation for bitbucket server vs bitbucket cloud. Thanks for pointing that out.   
Would you happen to know if the specific feature I asked about (automatic merging master into another branch) is available on Bitbucket server? as I can't see any explicit reference to it.  
I will upvote and watch this feature request post so thanks for that!


author: Syahrul
body: Hey [@Jordan Fox](/t5/user/viewprofilepage/user-id/5073436)

If you are looking for automatic merging for the Bitbucket server, then this documentation should help you:

[Bitbucket server - Automatic branch merging](https://confluence.atlassian.com/bitbucketserver/automatic-branch-merging-776639993.html)

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
Atlassian blocked Ukrainian user account
Asked by karpovsystems:

I am a Ukrainian developer, currently based in Kyiv, Ukraine. My original account is linked to the email \<email_removed_for_privacy\>.

I recently received the following message:
> Dear Atlassian user,
>
> U.S. law prohibits Atlassian, an Australian corporation with offices in the United States, from providing you with access to our products and services. After analyzing the applicable lists of restricted parties maintained by the U.S. Government, we were unable to confirm that your name was not affiliated with a restricted party. If this is a case of misidentification, please reply with **two different** copies of official documentation to verify your identity.
>
> Official documentation includes, but is not limited to, a government-issued driver's license or identification card, passport, utility bill, mortgage or bank statement, etc. Please make sure your full name and address are clearly visible.
>
> We look forward to your reply.

I replied with copies of my Ukrainian and international passports, but didn't get any response.

?an you please unblock my account?


Answers:
author: Alex Koxaras _Relational_
body: Hi [@karpovsystems](/t5/user/viewprofilepage/user-id/1197436)

I'm sorry to hear about this mixed up. Best choice you've got is to raise (if you haven't already) a request at support.atlassian.com/contact/

Hope that this will be sorted out!

comments: author: Dmitry Kravchenko
body: Hi! Sorry, was to post here: did they solve your issue?


author: Anthony Colarusso
body: I cant raise a request bc you deactivated my account. Why is this happening


author: Dmitry Kravchenko
body: Did they solve your issue?


Tags: atlassian-guard

cloud
Import of repository failed
Asked by Ramya Yarru:

Hello Team,

I'm trying to import a repository from different workspace of my own user account and since this is a private repository I did check on "Requires authorization" but receiving the below error:

1. 11:53:02 git import for: <https://bitbucket.org/xxxxx/xxxxx>
2. 11:53:02 Cloning <https://bitbucket.org/xxxxx/xxxxx>...
3. 11:53:04 Remote Git clone failed: \<class 'bitbucket.apps.asyncx.tasks.RepoImportTask.ImportException'\>: Command failed. Return value: 128

Please suggest on where I'm going wrong.


Answers:
author: Ben
body: Hey Ramya,

I have censored your repository path as this is a public forum.

Given that we have [moved away](https://community.atlassian.com/t5/Bitbucket-articles/Announcement-Bitbucket-Cloud-account-password-usage-for-Git-over/ba-p/1948231) from basic username/password authentication over HTTPS connections, I would suggest making use of an AppPassword and including this within the URL when performing the import.  

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>  
Once you have created an AppPassword, you can then include it in the clone URL as follows:

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

Try unticking "Requires authorization" and using the above format for the repo URL and let me know how this goes.  
Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
aws-cli image with aws cli version 2?
Asked by Georg Duemlein:

I notice the \`atlassian/aws-cli\` image is for aws-cli version 1.

Is there an image for version 2 or a ticket I can vote for to get one created?

Thank you!


Answers:
author: Ben
body: Hey Georg,

The image you have mentioned has been deprecated - we recommend using the latest version of the amazon/aws-cli image located here:  
<https://hub.docker.com/r/amazon/aws-cli>

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
How we can set up the SSO in Bitbucket Cloud Premium?
Asked by Alicia Fuentespina:

We kindly request support or guidance on how to implemeny SSO in Bitbucket Cloud Premium

All documentation found in support is referring to data center but not cloud.

Thanks,


Answers:
author: Syahrul
body: Hey [@Alicia Fuentespina](/t5/user/viewprofilepage/user-id/5073174)

Welcome to the community.

Per our [documentation](https://support.atlassian.com/organization-administration/docs/organization-admin-abilities-for-cloud-products/), this is a feature exclusive to **Atlassian Access**.

Atlassian Access is a management tool that allows you to set up an SSO and manage it across Atlassian products.

You can use this [page](https://www.atlassian.com/software/access) to get a **30-day free trial** for Atlassian Access and use this [documentation](https://support.atlassian.com/security-and-access-policies/docs/configure-saml-single-sign-on-with-an-identity-provider/) for the specific steps on how to use Atlassian Access to enable SSO!

Cheers,  
Syahrul

comments: author: Alicia Fuentespina
body: Thanks a lot for you answer Syahrul. Very useful documentation.

Just one more question, in case our organization has the Atlassian Access but for on-premise (private Cloud) set up usage, could be able to be used for the Buitbucket cloud-based product? Thanks again


author: Syahrul
body: Hey [@Alicia Fuentespina](/t5/user/viewprofilepage/user-id/5073174)

Glad to hear that.

I do not entirely understand your questions, but if you have, for example, a Jira server instance and wish to connect with Bitbucket cloud. Then yes, it's possible via the integration as long as your instance is accessible via the internet.

However, I don't think Atlassian access works with On-premise products, as it's designed with the Atlassian cloud in mind.

Cheers,  
Syahrul


author: Alicia Fuentespina
body: Hi again [@Syahrul](/t5/user/viewprofilepage/user-id/744536)

Yes, you are right I we ave JIra server instance and is accesible via internet through VPN. We will review the documentation and try to set it up. Any further question or comment, I will let you know. Thanks,

Alicia


Tags: bitbucket-cloud

cloud
Getting error for IF expression
Asked by Ravi Kanth Tadoori:

```
IF([entry.transactions]>10 && [entry.ListOfApps]>10, "Large", "Medium") 
||
IF([entry.transactions]<5 && [entry.ListOfApps]<5, "Small", "Medium") 


```

Im trying to achieve above expression in confiform field definition but getting "**NA** " , when entry.transactions and ListOfApps value is less than 5 whereas I'm expecting **Small**


Answers:
author: Ravi Kanth Tadoori
body: was able to use as below

IF(  
\[entry.transactions\] \> 15 \&\& \[entry.listOfApps\]\> 15,  
"Large",  
IF(\[entry.transactions\] \< 5 \&\& \[entry.listOfApps\]\< 5,  
"Medium",  
"Small"  
)  
)


Tags: bitbucket-cloud

cloud
How to generate extent report in bitbucket pipelines post build completion.
Asked by nainitamahajan:

I have created my CICD pipeline for my automation test cases,I need to generate extent report after every execution.Please let me know how to integrate this with the pipeline


Answers:
author: Mark C
body: Hi [@nainitamahajan](/t5/user/viewprofilepage/user-id/5073020),

Welcome to the community.

Depending on how the extent report works, if it supports XML test results, you can save it from the location supported by Pipelines and you'll be able to see the result on your Pipelines build's "Tests" tab.  
You can check this link for more information: [Test reporting in Pipelines](https://support.atlassian.com/bitbucket-cloud/docs/test-reporting-in-pipelines/)

Alternatively, if doesn't work for you, you can save the extent report as [Artifacts](https://support.atlassian.com/bitbucket-cloud/docs/use-artifacts-in-steps/) so that you can download the result from Pipelines.

Hope it helps.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
unable to retrieve file with special characters using bitbucket api
Asked by Indu Devanath:

File name is - "XYZ Global Development %26 Performance User.profile-meta.xml"

While retrieving this file using the bitbucket api, we are getting 404 error

[https://api.bitbucket.org/2.0/repositories/\<workspace-id\>/\<repo-name\>/src/5b51a74b55eb/force-app/main/default/profiles/XYZ%20Global%20Development%20%2526%20Performance%20User.profile-meta.xml](https://api.bitbucket.org/2.0/repositories/<workspace-id>/<repo-name>/src/5b51a74b55eb/force-app/main/default/profiles/XYZ%20Global%20Development%20%2526%20Performance%20User.profile-meta.xml)

It was working ok on 1st Nov 2022. It's not on 4th Nov 2022. Did anything change from bitbucket api perspective?


Answers:
author: Dan Fraser
body: Hi [@Indu Devanath](/t5/user/viewprofilepage/user-id/1941700),

I've pushed a change which should fix this for you. Could you please try again and confirm that you're able to retrieve the file via the API?

Best regards,

[@Dan Fraser](/t5/user/viewprofilepage/user-id/4470731)

comments: author: m.chintakunta
body: Hi [@Dan Fraser](/t5/user/viewprofilepage/user-id/4470731) - we also have this issue. if profile name has spaces, deployment getting failed. Can you help us to fix the issue

Thanks \& Regards

Muni prasad C


author: Theodora Boudale
body: Hi [@m.chintakunta](/t5/user/viewprofilepage/user-id/5124202),

This specific bug has been fixed.

If you are experiencing an issue, please create a new question via <https://community.atlassian.com/t5/forums/postpage/board-id/bitbucket-questions>, provide some more details in your question about what exactly you are doing and what kind of error you get, and we will look into it.

Kind regards,  
Theodora


author: m.chintakunta
body: [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) Thanks for your quick response. I have raised a question as you suggested. Please look into that. Thank you

<https://community.atlassian.com/t5/Bitbucket-questions/CI-CD-Error-in-deploying-salesforce-profile/qaq-p/2243670>


author: Theodora Boudale
body: Hi [@Indu Devanath](/t5/user/viewprofilepage/user-id/1941700),

I have been able to reproduce this issue by creating a file with the same name in one of my repos. I have reached out to the development team to find out if there has been any change from our side causing this, I will let you know as soon as I have an update.

Kind regards,  
Theodora

comments: author: Indu Devanath
body: Thanks [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) I will look forward to your response.


author: Theodora Boudale
body: Hi [@Indu Devanath](/t5/user/viewprofilepage/user-id/1941700),

This is indeed a bug introduced recently. I went ahead and created a bug report in our issue tracker:

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

Please make sure to add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates. I don't have an ETA for a fix, but when the issue is fixed, we will post an update on the public bug report.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
git clone on command line complains about manifest issues
Asked by Bruce Sabalaskey:

I am trying to clone a repo done by a contractor for us, and when I type the usual clone command on an Ubuntu 20.04 command line, I get this.

Note: I setup an SSH key and followed the instructions to add it to the git credential manager.

An assembly specified in the application dependencies manifest (Atlassian.Bitbucket.UI.deps.json) was not found:  
package: 'HarfBuzzSharp.NativeAssets.Linux', version: '2.6.1.7'  
path: 'runtimes/linux-x64/native/libHarfBuzzSharp.so'

fatal: helper error (140): Unknown

Then it prompts me for my password, which I do enter, and get this:

remote: Login failed due to incorrect login credentials or method.

Now what?


Answers:
author: Bruce Sabalaskey
body: Looks like an https option issue. The default clone command uses https. Picking the SSH in the dropdown gave a different URL and that worked for git clone. Many years of github versus being new on bitbucket complicates things.


Tags: bitbucket-cloud

cloud
Time limit between two requests made to bitbucket
Asked by Mohammed Muthahhar:

What is the time that should be maintained between two requests (eg: http) to the bitbucket??


Answers:
author: Mark C
body: Hi [@Mohammed Muthahhar](/t5/user/viewprofilepage/user-id/5070356),

Thank you for reaching out to the community.

If you're referring to API rate limits, you can check this link for more information: [API request limits](https://support.atlassian.com/bitbucket-cloud/docs/api-request-limits/)

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
Diff not showing After Pull the file in Eclipse
Asked by Rishi Kumar Sah:

We Are Using Eclipse Hellos G2 and JAVA 7

we have created a project in bit bucket and a team member committed his code in his branch. when i am merging the file in master branch then showing conflict in some files. then i pull the file and open in eclipse thenit is not showing the conflict in eclipse . Only showing update file and when we try to commit then showing 'nothing to commit, working tree clean' and nothing gets committed and also does not show marge option in bit bucket.

Please help.

Thanks in advance


Answers:
author: Theodora Boudale
body: Hi [@Rishi Kumar Sah](/t5/user/viewprofilepage/user-id/5072761) and welcome to the community!

You will need to try to merge the two branches locally in order for the conflicts to show. I don't know if Eclipse provides a way to do this.

We have the following guide that has step-by-step instructions on how to resolve conflicts locally using a command line application:

* <https://support.atlassian.com/bitbucket-cloud/docs/resolve-merge-conflicts/>

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

merge-conflict
How do I check an incident ID reported by an HTTP 500 returned by the API ?
Asked by Leandro Costa:

So I am trying to set branch restrictions on a test project and it seems that the docs are not quite accurate (<https://developer.atlassian.com/cloud/bitbucket/rest/api-group-branch-restrictions/> above all the examples).

In this attempt to get it working, I am getting an HTTP 500 with an error like:

{"type": "error", "error": {"message": "Something went wrong", "id": "ede6c87c4ae04e2cb88d390cda8e3187"}}

Am I able to look for this ede6c87c4ae04e2cb88d390cda8e3187 code somewhere in order to see what I am doing wrong ?

Thank you

Regards


Answers:
author: Theodora Boudale
body: Hi [@Leandro Costa](/t5/user/viewprofilepage/user-id/3994163),

Only Atlassian staff can look for this error code in one of our internal systems. This code is meant to be given to support staff, end users cannot check it.

The error code you provided indicates an issue with the data of the request, but it's unclear what the issue is.

Could you please provide us with the curl command of the API call you are running (including the data of the request)?

Please make sure to sanitize any private info like workspace id, repo name, credentials, prior to sharing (replace them with some dummy values). I can then try to replicate the error and figure out why it is occurring and what needs to be corrected.

Kind regards,  
Theodora

comments: author: Leandro Costa
body: Thanks Theodora, finally I found another example elsewhere that led me to a successful state.

I suggest reviewing those API docs because it seems that there are some differences there.


author: Theodora Boudale
body: Hi Leandro,

It's good to hear that you figured this out. We have an open request to provide examples in our docs. I'm not sure though what you are referring to with 'differences', there are differences with what? Could you please clarify?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud