youngmon/atlassian-qna huggingface dataset:
Code metrics history
Asked by Stefan Nagel:

With bibucket pipelines we generate several code metrics like: RAM usage, ROM usage, Unit Test Coverage ... etc.

I would like to have an overview of these metrics over my branch commits. This way I could see e.g. the RAM uasge of my development branch.

Is there any way to do that? Any example or best practise?

I also took a look at Fisheye. Is that coming out of the box with Fisheye? or is it just a small subset on the Fisheye feature and easier to implement by ourselvers.

Any advice would be appreciated.

Kind regards

Stefan


Answers:
author: Aron Gombas _Midori_
body: Fisheye is not available for the Cloud, so if you are using Bitbucket Cloud it wouldn't be a good match.

If I were you, I'd do this:

1. you generate the metric (you're already doing this)
2. from the Pipeline, you can pass metric data to the [Segment](https://segment.com/) service (it is a generalized gateway to other analytic services and it has a generous free tier)
3. from Segment you forward the data to an analytic service, we are using [Amplitude](https://amplitude.com/) with great success (but you can choose many other options)
4. in Amplitude, you can easily build charts and reports, then compose dashboards from those which will be auto-updated as your Pipeline is passing more and more analytic data

Notes:

* In step 2, "passing" means a REST API call which you should be able to do easily from the Pipeline.
* You can skip step 2, and pass the data directly to Amplitude. It eliminates one step, but if you want to forward the data to multiple "sinks" or you want to keep the option to choose another sink, then introducing Segment is a good idea!

comments: author: Stefan Nagel
body: Great ... thanks a lot ... we will check that


Tags: bitbucket-cloud

cloud

fisheye-crucible
Git Pull request
Asked by Elie KHAZZAKA - Hi-YU Liban:

Hello, i am using a Linux Server i have cloned the project from bitbucket to my local laptop when i make i make git push from local to bitbucket it workes but when i make a git pull on my linux server it give me this "error: cannot open .git/FETCH_HEAD: Permission denied"

i have changed the url origin link from .git/config and still didn't work


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

This error may occur if the user on your Linux server doesn't have enough permissions to the clone directory. Please note that I am not talking about the Bitbucket Cloud user, but the user account on the Linux server that you are logged in to when you try to make a git pull.

A git pull operation will incorporate changes from the remote repo to the clone, so the Linux user needs to have read-write permissions to the clone directory.

Could you please check and adjust the permissions and then try to execute the command again?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Failure when receiving data from the peer - Window VM OS
Asked by Vikas Haritwal:

We are facing this issue with Bitbucket SAAS where randomly seeing this error

Failure when receiving data from the peer -

We are trying it from VM and OS - Window


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

**1.** Can you please let me know if you're using Bitbucket Cloud or Bitbucket Server/Data Center?

You mention Bitbucket SAAS and your question has the tag 'bitbucket-cloud'. However, there is no Bitbucket Cloud account with the email of your community account.

If you are unsure, Bitbucket Cloud can be accessed from browser at <https://bitbucket.org/>, while Bitbucket Server/Data Center has a different custom URL.

**2.** What command or action are you executing when you see this error?

Kind regards,  
Theodora

comments: author: Vikas Haritwal
body: Hey Theodora, Thanks for Ack here.

- We are using \`Bitbucket Cloud\` for this but account is different ( Official details can't share here)

- We are trying to access bitbucket public repo from VM Windows OS![Screenshot 2024-03-13 at 1.52.06?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/311741iB5553123674AD755/image-size/large?v=v2&px=999 "Screenshot 2024-03-13 at 1.52.06?PM.png")


author: Theodora Boudale
body: Hi Vikas,

Thank you for the details.

**1.** You mentioned that you randomly see this error. Does this mean that the git fetch command sometimes succeeds and sometimes fails on the same virtual machine?

**2.** What version of Git are you using on this VM? I've similar errors (although not exactly the same) with an older version of Git for Windows (version 2.39 specifically).

**3.** Is the error reproducible if you perform the same operation on a different machine on a different network?

The logs show that the error comes just 1 second after the git fetch command gets executed, so it's possible that something on the VM may be blocking the connection (e.g. firewall, antivirus) or it could be a network-related issue.

Kind regards,  
Theodora


author: Vikas Haritwal
body: Hey Theodora,

Thanks for response, Please find below details as requested:

1. Yes we are getting it randomly
2. git version 2.44.0_window
3. Yes we tried with 2 diff network, able to reproduce same on another network as well.

Currently we are using VM GCP, may be we can try same with AWS VM and verify it once.

Regards

Vikas


author: Theodora Boudale
body: Hi Vikas,

Thank you for the info.

I found that there is a bug that occurs when cloning Bitbucket Cloud repos with Git 2.44.0.windows. We have an open bug report here:

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

Could you please try one of the workarounds mentioned in this bug report?

You could either change the http.sslBackend in your Git config with a command as follows:

```
git config --global http.sslBackend openssl
```

Or, in case this doesn't work, you can uninstall Git 2.44.0.windows and then install the earlier version, 2.43.0.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Project sorting ignores special characters
Asked by mfs:

Is it correct that sorting ignores special characters?  

My sorting is

1. repo-test-c
2. repo-testing-b
3. repo-test-w

I would expect something like this (or inverted)

1. repo-test-c
2. repo-test-w
3. repo-testing-b  


Answers:
author: Theodora Boudale
body: Hi [@mfs](/t5/user/viewprofilepage/user-id/850890),

Just a heads up, I removed the repo URLs and names from your post to comply with our privacy policy, as this is a public forum. I replaced them with some dummy names that reproduce the issue.

I will reach out to our development team for more details, I will get back to you when I have an update.

Kind regards,  
Theodora

comments: author: Theodora Boudale
body: Hi [@mfs](/t5/user/viewprofilepage/user-id/850890),

I reached out to the development team about this. We leverage our database's sorting framework to organize the list of repositories on the project page and that framework seems to ignore special characters.

I have created a request in our issue tracker to change this behavior:

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

You can add your vote to that ticket (by selecting the **Vote for this issue** link) and add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

project

sorting
Failed to upload files to Bitbucket Downloads
Asked by Rex Cheung:

My pipelines uses atlassian/bitbucket-upload-file 0.7 to upload artifacts to Bitbucket Downloads.

I got error "Container 'docker' exceeded memory limit." ("error waiting for container: unexpected EOF" in build log) when total size of artifacts reached around 510MB (in 5 files).

Is it possible to fix the issue? Or I need to create my own script to upload files in a more memory efficient way.


Answers:
author: Ben
body: Hi Rex,

I've noticed you have raised this in community, yet you have access to a **Standard** workspace that is entitled to **Standard-level** support from our team. In future, please raise a ticket directly with us by listing your workspace URL and selecting **Bitbucket Cloud** as the product with **Technical Issues \& Bugs**as the reason:

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

If you are receiving a Pipelines error that you have run out of memory, chances are you are not assigning enough memory to that step. Please refer to our documentation for steps to combat this - particularly the **Service memory limits**section which outlines how memory is allocated to your builds:

*

  #### <https://support.atlassian.com/bitbucket-cloud/docs/databases-and-service-containers/> {#toc-hId-318024247}

If you still encounter issues, please raise a ticket directly with support as above so that we may assist you further. If you cannot raise a ticket, let me know and I will raise one on your behalf.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Rex Cheung
body: Thanks, I have raised a ticket in your system.

Actually, I don't expect uploading files using official uploading pipe requires adjustment in allowed memory.


author: Rex Cheung
body: Recommendation from the support person is increasing allowed memory or using CURL (not pipe). I have no idea if the pipe will be improved to allow uploading large file.


Tags: bitbucket-cloud

cloud
repositories disappeared
Asked by a.juttner:

Hi,

I have today received an email "Your Bitbucket plan has changed. The plan on the Bitbucket workspace, , has changed from Free to Academic."  

I can since no longer access and manage repositories via https -- I still have access via ssh.

Any idea?

Thanks.


Answers:
author: Ben
body: G'day!

Welcome to the Bitbucket Cloud community! :)

It is likely that you are not logging into the correct workspaceID that has those repositories present, I'd suggest running the following command to show your remote repository URL's which would reveal the correct workspaceID that you should try to access:

```
git remote -vvv?
```

Once you have got the workspaceID, you can then check the email address that you should be logging into to access them by checking your git config:

```
git config --list
```

Once you have a good idea of the workspaceID and the email address, please try logging in using that email address you may have used in the past - if you are able to login, navigate to the workspaces you have access to by clicking the **gear cog** selecting **All Workspaces**and then navigating to that workspace from the list found by checking remote URL's.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: unknown-hosting-type
Gitlab to bitbucket migration
Asked by bhanu teja:

Hi team ,

we are migrating from Gitlab to bitbucket what are the prerequisite to migrate? can we migrate al the repos at once what are challenges we might face when migrating

Thanks


Answers:
author: Patrik S
body: Hello [@bhanu teja](/t5/user/viewprofilepage/user-id/5344758) ,

thank you for reaching out to Community!

You can make use of the import repository feature in Bitbucket Cloud to import your source code and all the history of your repository from a different git provider, such as Gitlab. The following article provides instructions on how you can start the import :

* [Import a repository from Github or Gitlab](http://Import a repository from Github or Gitlab)

Each repository will need to be imported individually.

It's important to note that the import only includes the git content of the repository. Any metadata such as pull requests, comments, etc, will need to be recreated manually in the UI.

Also, the users and permissions are not included in the transfer, meaning that the workspace/repository permissions will need to be manually recreated on Bitbucket side (learn more on [Grant access to a workspace](https://support.atlassian.com/bitbucket-cloud/docs/grant-access-to-a-workspace/)).

Let us know if you have any questions!

Thank you, [@bhanu teja](/t5/user/viewprofilepage/user-id/5344758).

Patrik S

comments: author: bhanu teja
body: Thanks [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) it helped


Tags: bitbucket-cloud

cloud
Read-only web acces
Asked by ivanjaros:

I want to give read access to a repository to a third party(person) but if I go to users and try to send invitation, there is only read, write and admin and the read role specifically states "clone or fork repository", which is way beyond what I want to grant access for.

Does bitbucket lack this functionality or am I overlooking something?


Answers:
author: Aron Gombas _Midori_
body: If you give read access to the third party person, then he could theoretically see all files and their change history. In that sense, it is equivalent with cloning the repo, although of course "cloning files one by one" isn't very convenient.

Which means that if you give "read" access to the repo, then not permitting cloning wouldn't make any safer.


Tags: bitbucket-cloud

cloud
No workspace with identifier 'username'
Asked by Giordano Di Matteo:

This message pops up when ploi.io tries to access the repositories of my account. I've tried everything but there's no way to make it see the repositories of my account, and the issue seems to be with Bitbucket itself. What should I do?


Answers:
author: Patrik S
body: Hello [@Giordano Di Matteo](/t5/user/viewprofilepage/user-id/5444198) and welcome to the Community!

I'm afraid that since this is a 3rd party tool, we can't advise you much, as this integration is developed and supported by Ploi.io themselves.

It may be the case the integration is currently broken on their side, so I would suggest reaching out directly to their support team so they can investigate further.

I found the following link to Ploi.io support form that may be of help:

* <https://ploi.io/support/create>

Thank you, [@Giordano Di Matteo](/t5/user/viewprofilepage/user-id/5444198) !

Patrik S


Tags: bitbucket-cloud

cloud
Get merge checks status of pull request via api
Asked by Sharon Kurelovsky:

Hello everyone,

I have been trying to search for a way to obtain the merge checks status of an open pull request in the API documentation of bitbucket, but I have not been able to find a solution. I am trying to create a job to merge pull requests, but I need to ensure that all the merge checks have passed before proceeding.

Has anyone encountered this problem before?


Answers:
author: Saxea _Flowie_
body: Hi [@Sharon Kurelovsky](/t5/user/viewprofilepage/user-id/5444095) ,

Yeah, the checks statues are not available via the REST API. One way to do this is to compute the checks yourself, based on the branch [restrictions API](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-branch-restrictions/#api-group-branch-restrictions). This API lets you know which checks are enabled. Then you can query the actual data e.g. PR/builds and verify if the condition is passing.

You might be interested in [Flowie](https://flowie.app/), the we Bitbucket addon we provide. It has its own merge checks, which you can use query the status. Most of the commons workflows are covered by built-in plugins, and if not covered you can contact us and we can help getting your workflow supported.

Cheers,  
Renato


Tags: bitbucket-cloud

cloud
fatal: unable to access 'https://bitbucket.org/ SSL certificate problem: self-signed certifi cate in
Asked by Lokesh Kannaiah:

fatal: unable to access '[https://bitbucket.org/](https://bitbucket.org/success-tooling-and-automation/success-pilot-web.git/)': SSL certificate problem: self-signed certifi  
cate in certificate chain


Answers:
author: Nikola Perisic
body: Welcome to the community [@Lokesh Kannaiah](/t5/user/viewprofilepage/user-id/5443948) !

Please refer to: <https://community.atlassian.com/t5/Bitbucket-questions/SSL-Self-Signed-Certificate-Error/qaq-p/2437727>

And also: <https://community.atlassian.com/t5/Fisheye-Crucible-questions/SSL-certificate-problem-self-signed-certificate-in-certificate/qaq-p/2086861>


Tags: bitbucket-cloud

cloud
Bitbucket Integration with Codacy
Asked by Willis Williandy:

Hi, I have a question. I encountered the following error when trying to integrate Codacy with Bitbucket. I've checked my access management for Bitbucket access. I've also made my repository public. What should I do?  
![codacy.png](/t5/image/serverpage/image-id/309937i3529C96CB54DCA45/image-size/large?v=v2&px=999 "codacy.png")


Answers:
author: Patrik S
body: Hello [@Willis Williandy](/t5/user/viewprofilepage/user-id/5008327) ,

thank you for reaching out to Community!

Based on the screenshot you have shared in your post, it seems like the issue is occurring when Codacy is fetching information from Bitbucket Cloud but is not able to parse the resulting data. So essentially, it seems Bitbucket Cloud is correctly sending the data, but Codacy is not being able to process it.

Since this is a third-party application, and the processing of the data is happening on Codacy's side, I would suggest reaching out directly to their community/support channel, so they can investigate why this error is occurring. I found the following link to Codacy's community that may be of help :

* <https://community.codacy.com/>

Thank you, [@Willis Williandy](/t5/user/viewprofilepage/user-id/5008327) !

Patrik S


Tags: bitbucket-cloud

cloud
Rest API: member/user search?
Asked by Deli Soetiawan:

Is there any API available for searching/filter memberuser like when we add reviewer for pull request?

![Screenshot 2024-03-04 at 15.00.54.png](/t5/image/serverpage/image-id/309900i6315D2F9C3345321/image-size/large?v=v2&px=999 "Screenshot 2024-03-04 at 15.00.54.png")

I tried to use **/** **workspaces/{{workspace_name}}/members** but this only able to query by **user.nickname** and it must be exact (using **=** , cannot use **\~**)


Answers:
author: Patrik S
body: Hello [@Deli Soetiawan](/t5/user/viewprofilepage/user-id/4709636) ,

thank you for reaching out to the Community!

Unfortuantely, the API used for the suggestions when you're adding a reviewer to a Pull Request is only internal, and not there's not currently a public endpoint for it.

As for the [List users in a workspace](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-workspaces/#api-workspaces-workspace-members-get) endpoint, it indeed only supports exact matching with "=" (equal to) or "!=" (different than). One alternative that may work for you is to use a *JSON* processor, such as ***jq*** , to process the output of the API and filter by the string you are looking for. Following is an example of filtering the result of the API only for the users where *nickname* contains "Joe" :

```
curl -X GET -u USERNAME:APP_PASSWORD 'https://api.bitbucket.org/2.0/workspaces/WORKSPACE/members?pagelen=100' | jq -r '.values[].user | select(.nickname | contains("Joe"))'
```

The caveat of this workaround is that, since the max pagelen is 100, if you have more than 100 users in the workspace you are making the request to, you will have to iterate through the pages and apply that same filter to have the final result.

Another alternative, if your use case does not require the explicit usage of the API, is to export the entire workspace user list through **Workspace Settings** \> **User directory** \> **Export**.

This will generate a CSV file containing all the users of the workspace, which you can then search as you would do in a normal text file.

Hope that helps! Let me know in case you have any questions.

Thank you, [@Deli Soetiawan](/t5/user/viewprofilepage/user-id/4709636) !

Patrik S


Tags: bitbucket-cloud

cloud

member

rest-api

user

workspace
Cannot log into Bitbucket
Asked by Arun Satyal:

Hi team,

I cannot log into my Bitbucket account. I remember that I was inactive since around 2015. I am getting this message:

<br />

You may run into this issue when you use specific browsers or add-ons that hide the referrer header for id.atlassian.com and other Atlassian sites. Check for these and then try logging in again.

<br />

Please help me  
Thanks


Answers:
author: Laurie Sciutti
body: Hi [@Arun Satyal](/t5/user/viewprofilepage/user-id/5443527) and welcome to the Community! Your account may be inactive so you'll need Atlassian Support assistance. Maybe [@Patrik S](https://community.atlassian.com/t5/user/viewprofilepage/user-id/4603309) or [@Theodora Boudale](https://community.atlassian.com/t5/user/viewprofilepage/user-id/818086) can assist.

comments: author: Ben
body: Hi [@Arun Satyal](/t5/user/viewprofilepage/user-id/5443527) !

I've just re-activated your account, it was dormant like you had mentioned. May you please attempt to log back in?

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Does Crucible support third party diff views?
Asked by L. Schimmel:

The diff viewer in Crucible only uses a small part of the screen space and has no intuitive syntax coloring. Is it possible to use another diff viewer like beyond compare?


Answers:
author: Felipe Kraemer
body: Hi Leonard,

At this time this functionality is not yet possible in Crucible, only the built-in diff viewer can be used.

If you have any suggestions for the built-in diff viewer, I suggest you to create an improvement request at:

<https://jira.atlassian.com/browse/CRUC>

When creating the improvement request, please describe your needs the more detailed the possible. It will help our development team to build a solution that meets your needs.

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
Is there a eclipse integration for Crucible?
Asked by L. Schimmel:

While using crucible we had trouble navigating in the code. Is there a way to navigate in the file using Eclipse?


Answers:
author: Felipe Kraemer
body: Hi Leonard,

There **was** an Eclipse IDE plugin a long time ago, compatible with FishEye/Crucible versions 2.0x to 2.2.x. This plugin is no longer compatible and it was used for repository browsing only.

<https://confluence.atlassian.com/display/IDEPLUGIN/Installing+the+Eclipse+Connector>

<https://confluence.atlassian.com/display/IDEPLUGIN/Configuring+the+Eclipse+Connector>

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
Global user for SVN authentication possible?
Asked by Steffen Breitbach:

I'd like to use some kind of global credentials to authenticate against our SVN repositories rather than having to enter the credentials individually for each repository. Goal is to minimize effort when those credentials change.


Answers:
author: Felipe Kraemer
body: Hi Steffen,

At this time, the functionality you're requesting is not yet possible in FishEye. I have created a new request for it in our development issue tracker, and you can track it here:

<https://jira.atlassian.com/browse/FE-5460>

Feel free to [vote](https://confluence.atlassian.com/display/JIRA/Watching+and+Voting+on+an+Issue) for the issue and/or leave a comment to describe your use-case in more detail. It will help our development team to build a solution that meets your needs.

If you want to know more about how we prioritise feature requests, take a look at our [policy](https://confluence.atlassian.com/display/DEV/Implementation+of+New+Features+Policy).

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


author: Steffen Breitbach
body: Hi Felipe,

thanks! I'll vote for the feature immediately! :smile:

Regards  
Steffen


Tags: fisheye-crucible-administration