youngmon/atlassian-qna huggingface dataset:
Issue with two verification forgot it
Asked by Hamza Wakrim:

hello


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

There is an option to request a 2FA recovery email by selecting the option "Forgot code?" on the screen that asks you for a 2FA code.

I see that you requested a recovery email for 2FA a few days ago. Can you please confirm if you have received it?

You can use that to disable 2FA on your Bitbucket account. You can then set it up again, if you want.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Bitbucket Cloud API to get list of repositories for a specific project
Asked by Chiqui Sison:

How do you get the list of repositories for a specific project using API for Bitbucket Cloud?


Answers:
author: Mark C
body: Hi [@Chiqui Sison](/t5/user/viewprofilepage/user-id/1931534),

Thank you for reaching out to the community.

You can use the below API endpoint to list your repositories.

```
GET /repositories/{workspace}/{repo_slug}
```

**Reference** : <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-get>

You can then use the filter option to filter your specific project. - <https://developer.atlassian.com/cloud/bitbucket/rest/intro/#filtering>

Hope it helps.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
Unable to import Shared pipelines
Asked by Veeresh:

Is this issue resolved? I am still unable to import the share-pipeline-1 to import repository, I dont see the pipeline being triggered at import repository. Please advise on how to import the share-pipeline or yaml anchor steps from export repo to import repository in bitbucket. Below example doesn't seems to work.

<https://support.atlassian.com/bitbucket-cloud/docs/share-pipelines-configurations/>

**Export repository:**

export: true

definitions:  
pipelines:  
share-pipeline-1:  
- step:  
name: "hello world"  
script:  
- echo hello

<br />

**Import repository:**

pipelines:  
custom:  
import-pipeline:  
import: shared-pipeline:main:share-pipeline-1


Answers:
author: Mark C
body: Hi [@Veeresh](/t5/user/viewprofilepage/user-id/5585844)

Welcome to the community.

Would you be able to confirm if both repositories are in the same workspace?

Regards,  
Mark C

comments: author: Veeresh
body: Thank you Mark! yes able to import the share-pipeline now.

I was trying with **{workspace-name}/** {repo-slug-of-exported-pipeline}:{branch/tag-to-import-from}:{pipeline-from-exported-file} but worked just with repo name.

Can you please share some examples where we have aliases configured under definitions and yaml anchors under definitions \> pipelines in exporting repo, then try those YAML anchors being called in import pipeline?

Thank you in advance!


author: Mark C
body: Hi [@Veeresh](/t5/user/viewprofilepage/user-id/5585844)

Glad to know it works now.  
Unfortunately, we don't have relevant examples of YAML anchors for exporting. You can try some combinations and let us know if you encounter any issues.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
Extract Bitbucket data and port that data to another tool
Asked by Stephen:

We have a large amount of data in a Bitbucket repository. I want to extract the Bitbucket data and export that data into another tool. What tool or utility can be used to perform this type of data extraction ? Also, is there a tool to export the extracted data to another tool ? Thoughts?


Answers:
author: Aron Gombas _Midori_
body: This is a very vague question.

What is "Bitbucket" data here? The code and its history? Projects and repos and their metadata? What exactly?

Also, what is the target tool to import into? It'd affect the proper answer.


Tags: bitbucket-unknown-hosting-type

unknown-hosting-type
Consider case-insensitive Pull Request diff view
Asked by Mark Zieg:

I realize that most languages are case-sensitive, but it would be useful for VHDL reviews (perhaps SQL as well) if lines differing only in capitalization could be hidden from online diff reviews, much as the current tool allows users to ignore white-only changes (which is sensible in some languages like C, perhaps less-so with Python and Makefiles).


Answers:
author: Theodora Boudale
body: Hi Mark,

Thank you for the feedback.

Git is case sensitive. It has an option to ignore whitespace in diffs, but there is no option to make diffs case insensitive. A custom implementation would be required for the latter.

I went ahead and created a feature request for what you are asking to gather interest:

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

You can add your vote to it (by selecting the **Vote for this issue** link) to express your interest, as the number of votes helps the product managers better understand the demand for new features. You are more than welcome to leave feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to be 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

diff

pull-request
Deleting a bitbucket account
Asked by Robin Muterspaugh:

Can I delete our Bitbucket account and still have Atlassian and GitHub and it not affect our other Atlassian products?


Answers:
author: Ben
body: Hi [@Robin Muterspaugh](/t5/user/viewprofilepage/user-id/4502491)

If you delete your Bitbucket Cloud workspace, this will not affect your other products - you can delete your workspace by following the documentation below:

* <https://confluence.atlassian.com/bbkb/how-to-delete-bitbucket-cloud-workspace-1216583972.html>

Note that it takes 30 days to completely remove a Bitbucket Cloud workspace.

Deleting your Atlassian account is a different story, as this would affect access to all of your products (as you use this to login).

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Unable to switch Node.js versions using nvm in Bitbucket pipeline on Windows runner
Asked by Yogesh Kumar:

I have installed **nvm** on my Windows runner and successfully installed two Node.js versions: **16.15.0** and **6.9.1** . When I try to switch between these versions manually using the command `nvm use {version}` on the runner, it works as expected.

However, when I try to switch between Node.js versions using the same `nvm use {version}` command in the Bitbucket pipeline YAML file, it doesn't work. The pipeline doesn't switch the Node.js version as intended.

Here are the details:

* **Operating System**: Windows
* **nvm-windows** is installed, and I can switch Node.js versions manually.
* The pipeline fails to switch the version programmatically using `nvm use {version}` in the script.

How can I achieve this Node.js version switch within the Bitbucket pipeline?

Any help or examples would be greatly appreciated!


Answers:
author: Ben
body: Hi Yogesh,

May I know which build image you are using in your YML configuration, and if you are performing install commands for both versions as part of your build script?

I will also need the error you're receiving.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Yogesh Kumar
body: Hi Ben, I'm using window server 2019 as runner. Im using following commands through script:  

- nvm use 6.9.1  
- npm install  
- npm run postinstall  
- npm run build  
But my node version is not switching to 6.9.1


Tags: bitbucket-cloud

cloud
Upgrade Plan Error
Asked by Alaattin Fidan:

We want to upgrade plan (Standart). An error occured. We don't understand the reason. Please can you help us.

Error Message  
Title: Unable to change plan  
Body: There was an issue changing your plan.

Error Code:  
504f42a97d764033af711f9f282ee6e9

[@Syahrul](/t5/user/viewprofilepage/user-id/744536) Can you help me?


Answers:
author: Alaattin Fidan
body: [@Syahrul](/t5/user/viewprofilepage/user-id/744536) Can you help me?

comments: author: Syahrul
body: Hi [@Alaattin Fidan](/t5/user/viewprofilepage/user-id/5584717)

Please create a support ticket with our billing team on our [Support portal](https://support.atlassian.com/contact/).

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
Request for Account Consolidation
Asked by ???:

Atlassian ??? ???,

? ???? ???? ? ????? ????.

Atlassian ??? ???? ? ??? ???? ????.

?? Jira? Bitbucket? ?? ?? ??? ???? ???? ??? ? ??? ???? ?? ? ? ??? ??? Atlassian ???? ???? ????? ?????.

??? ??? ???? ? ??? ??? ????? ???? ?? ??? ???? ??? ??? ????.

??? ??? ??????.

?????,


Answers:
author: Hans Polder
body: [@???](/t5/user/viewprofilepage/user-id/5584585) ,

Please be aware that this is a public forum, which is also indexed by search engines. Your mail addresses should not be on here, as it's inviting spammers to your door step :)

Additionally, most of us aren't Atlassian employees. This means that we cannot change something like you're requesting (merging of accounts).

You could try creating a support request here: <https://www.atlassian.com/company/contact/purchasing-licensing?redirectSource=sac-wac-redirect#/?inquiry_category=your_account>

comments: author: ???
body: ++thank you so much!++


Tags: atlassian-accounts

bitbucket-cloud

cloud

not-applicable
Does Bitbucket offer package registries?
Asked by Vladimir Alarcon:

We need to version and store different types of packages such as JAR, WAR, even EAR, and also ZIP, and NodeJS ones. We are not interested in Docker images just yet.

I cannot find a general Registry service in Bitbucket. Is there any product to accomplish this?

Thank you.


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

I'm afraid that Bitbucket doesn't offer package registries. We have a feature request in our issue tracker:

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

I suggest adding your vote to that feature request (by selecting the **Vote for this issue** link) as the number of votes helps the product managers better understand the demand for new features. You are more than welcome to leave feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to be 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.

Every Bitbucket Cloud repository has a **Downloads** page (you can find it on the left sidebar when you open the repo on Bitbucket's website). You can upload files there (a file shouldn't be larger than 1 GB), but keep in mind that this is not a package registry. If you need a package registry, you can look into ones offered by other companies.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

packages
Malicious content report
Asked by Choi Won Gyun:

<https://bitbucket.org/browserupdater/download/downloads/>

Hi, just wanted to report the repository above for hosting malicious content.

The files are specifically used to fool users into "updating \<current browser name\>" through fake popups on breached websites.


Answers:
author: Andy Heinzer
body: Thanks for reporting it [@Choi Won Gyun](/t5/user/viewprofilepage/user-id/5584496)

That repo has been taken down. If you find others in the future, you are welcome to report them here to Community, or you can also email abuse@atlassian.com and our team can investigate these further.

Andy


Tags: bitbucket-unknown-hosting-type

malware

unknown-hosting-type
Bitbucket repos tags or labels
Asked by gtangwa:

My company recently acquired Prisma Cloud for cloud security and application security. We have integrated all our Bitbucket repositories into Prisma for scanning. We also have different development groups who writing code for us. We are looking for a way to tag all our repos with their development group that way we can create Jira tickets for each account group. Tags can be pulled into Prisma for grouping.  
If anyone in the community can help us with suggestions on a way forward, I will greatly appreciate it.  
Thank you.  
Gilbert


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

Such a feature is not available in Bitbucket Cloud yet. We have a feature request that you can vote for (by selecting the **Vote for this issue** link) here:

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

You are more than welcome to leave feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to be 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.

At the moment, the only way to organize repos in a workspace is with projects:

* <https://support.atlassian.com/bitbucket-cloud/docs/create-and-manage-projects-in-bitbucket-cloud/>

Every repository in a workspace belongs to one of the workspace's projects.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Malicious repository
Asked by Andrew Katsewich:

Basically this file (scroll to the right), I get these a lot from upwork but they were on Github up until now where it is actually easy to do reporting.  
<https://bitbucket.org/wondertecom124/tokenstore-react/src/main/backend/routes/userRoutes.js>


Answers:
author: Andy Heinzer
body: Hi [@Andrew Katsewich](/t5/user/viewprofilepage/user-id/5584336)

Thanks for reporting it to us. You are welcome to report such findings to us here in Community. In the future, you could also reach out to abuse@atlassian.com as a means of informing our abuse team.

I forwarded this report to my internal team. They have reported taking down this repo as a result.

Thanks again,

Andy


Tags: bitbucket-unknown-hosting-type

unknown-hosting-type
JSON via CURL in atlassian/ssh-run:0.8.1
Asked by Jan Guardian:

Guys, please, spare my sanity. I'm trying to run a curl command with atlassian/ssh-run:0.8.1 as follows to no avail:

```
curl --request POST --url https://api.cloudflare.com/client/v4/zones/$CLOUDFLARE_ZONE/purge_cache --header "Content-Type: application/json" --header "X-Auth-Key: $CLOUDFLARE_APIKEY" --header "X-Auth-Email: $CLOUDFLARE_EMAIL" --data "{"purge_everything": true}"
```

The request fails with the message from the endpoint saying that "Request must contain one of "purge_everything". Obviously, it has to do something with escaping the quotes in the JSON that is being sent.

I tried it all: backslashes, single quotes, double and tripple single and double quotes --- nothing seems to work.

Please, tell me how to send JSON with curl through atlassian/ssh-run:0.8.1


Answers:
author: Jim Knepley - ReleaseTEAM
body: I think it's most legible if you quote it like this:

```
--data '{"purge_everything": true}'
```

Although it's not relevant to this example, I like to programmatically generate JSON documents using "jq" in a shell, or the "json" library in Python. They do the various required quoting and escaping correctly so I don't have to worry about it, particularly for user-provided inputs.

comments: author: Jan Guardian
body: While it is legible indeed it does not work when run as a command in atlassian/ssh-run:0.8.1


author: Jim Knepley - ReleaseTEAM
body: Can you please be more specific? You're calling "[Purge Cached Content](https://developers.cloudflare.com/api/operations/zone-purge)" from the CloudFlare API, yes?

If it's the same response from CloudFlare, does it work with other clients like Python or Postman?

Your original request:

```
--data "{"purge_everything": true}"
```

...failed because the shell interpreted the data parameter as "{"

Single quotes interpret the entire string as one parameter (at the expense of variable expansion, which you aren't using).

The double-quote alternative would be escaping the double quotes in the JSON document like this:

```
--data "{\"purge_everything\": true}"
```

...which I believe is less expressive of your intent than the single-quoted version.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

pipes

ssh
I receive We couldn't log you in
Asked by Enrico Augurusa:

After logged in with google credentials, agree and create workspace and "One moment your product is starting up" I receive:

"We couldn't log you in"

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

And I can't access my workspace.

I'm using last version of Firefox without proxies or tunnels.

I need your help please


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

Your Bitbucket Cloud account was in a dormant state, which is the reason for the error you were seeing.

I reactivated the account. Can you please try logging in when you have some time, and let me know if the issue is resolved?

Kind regards,  
Theodora


author: Nikola Perisic
body: Welcome to the communtiy [@Enrico Augurusa](/t5/user/viewprofilepage/user-id/2239121) ! This is because your account wasn't active for some time and Atlassian has deactivated it. In order to solve this you need to place a support ticket [here](https://support.atlassian.com/contact/)


Tags: bitbucket-cloud

cloud
Not receiving email notifications from BitBucket
Asked by Ke Lin:

Hi

I have not been receiving email notifications for PRs from Bitbucket for the last few days.

Could you pls help in resolving the issue?


Answers:
author: Andy Heinzer
body: Hi [@Ke Lin](/t5/user/viewprofilepage/user-id/5453186)

I found there was a bounce message sent to your address with a response of:
> 554 5.7.1 \<@\>: Recipient address rejected: Access denied

I have cleared the suppression from our side.

comments: author: Ke Lin
body: Thanks you i will have a look


author: Ke Lin
body: Hi [@Andy Heinzer](/t5/user/viewprofilepage/user-id/541137) ,

Sorry for the late updates, the email notification seems still not working


Tags: bitbucket-cloud

cloud
Listing all pipelines executed in the last 24 hours
Asked by Inapurapu, Aditya:

I need to list all bitbucket pipelines executed in the last 24 hours using the REST API. I came across this community question <https://community.atlassian.com/t5/Bitbucket-questions/Re-How-to-get-latest-pipelines-from-API/qaq-p/2071074/comment-id/83462#M83462>

and tried using the following REST API query, but all pipelines were returned while I was expecting only a handful of them to be returned. What am I missing?

[https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/pipelines?sort=-created_on\&q='created_on](https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/pipelines?sort=-created_on&q='created_on)\>2024-09-02'


Answers:
author: Adam Brunt
body: Not an answer but I am beginning to think that filtering on the pipelines endpoint does NOT work or, at the very least, the REST documentation is badly written (or even wrong).

For example, the post you link to works but according to documentation there is nothing about filtering on "status" which isn't even a property returned by the endpoint :(

Having said that, the first thing you need to do is use URL encoding in your URL; for example, change the '\>' to its %xx equivalent.

But as I said, I am not entirely convinced that it works as well as the REST documentation says it does

EDIT: According to <https://community.atlassian.com/t5/Bitbucket-questions/BitBucket-API-repository-Pipelines-search-query/qaq-p/2027370> filtering on the pipeline endpoint DOES NOT work


Tags: bitbucket-cloud

cloud
Repo on BitBucket over limit, local has been cleaned of large files, how can I push?
Asked by Carlos Solorzano:

My local repo is a few hundred megs now, but in bitbucket I have over 5 gigs. When I try to push it rejects my push because of that.

How can I push again?

Thanks.


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

I don't see any large repositories in your workspace. Could you raise a support ticket at our [Support portal](https://support.atlassian.com/contact/) and share the repository URL?

Regards,  
Syahrul

comments: author: Carlos Solorzano
body: Thank you, support solved the issue.


Tags: bitbucket-cloud

cloud
Malware repository
Asked by Ivan Novikov:

Hello, I found the active malware repository for few months.

A person, under the guise of asking for help with development, requests to run a project on a computer that contains obfuscated malicious code.  

There is an obfuscated js script at the end of the file, hiding in the right bottom corner.

<https://bitbucket.org/ritechdev/metaverse-backend/src/main/app/middleware/verifySignUp.js>

It's exactly the same attack:

<https://github.com/0x50D4/0x50d4.github.io/blob/main/_posts/2024-04-03-python-malware.md>

Please take action.


Answers:
author: Patrik S
body: Hey [@Ivan Novikov](/t5/user/viewprofilepage/user-id/5583394) ,

Thank you very much for reporting the malicious content on that repository.

We have taken down that repository as it violates Atlassian terms of service.

Again, we really appreciate your time on reporting this to us and helping to make our platform more secure.


Tags: bitbucket-unknown-hosting-type

unknown-hosting-type
How can I setup my Security Group in AWS to accept only bitbucket access?
Asked by Rafael Louren?o Da Costa:

I've a Jenkins instance in AWS inside a protect VPC, and I'do like to setup the security group for this VPC to Accept access only by Bitbucket.

Is It Exists a IP list that I can setup in my Security Group, or other way to do it?


Answers:
author: Patrik S
body: Hey [@Rafael Louren?o Da Costa](/t5/user/viewprofilepage/user-id/5583209) ,

and welcome to the Community!

You can find a complete list of Bitbucket Pipelines IP addresses in the following documentation:

* [Valid IP addresses for Bitbucket Pipelines build environments](https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/#Valid-IP-addresses-for-Bitbucket-Pipelines-build-environments)

Those would need to be allowed in any firewall you may have in front of your servers to allow Pipelines to access the server.

Let us know in case you have any questions.

Thank you, [@Rafael Louren?o Da Costa](/t5/user/viewprofilepage/user-id/5583209) !

Patrik S

comments: author: Rafael Louren?o Da Costa
body: Hey [@Patrik S](/t5/user/viewprofilepage/user-id/4603309)

Thank you so much you gave me exactly answer that I needed


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

jenkins

pipes
Configure a starting revision from which to start indexing
Asked by Bob Inskeep:

We are running Fisheye for subversion - 'Starter Kit'. I would like to reindex Fisheye, configuring the starting revision from which to start indexing so I can get back under the 10 committers limit. I find where it suggest I can do it, but I haven't been able to locate precisely how to go about it.

Any help will be greatly appreciated.


Answers:
author: Bob Inskeep
body: In Fisheye I found the last change which for one of the older committers and identified the last revision he made {revision}.

I went to Admin \| Repositories \| {repository in question} -\> SCM Details and set SVN Options \| Start Revision: {revision} + 20. When I saved the change, Fisheye said I need to re-index so it did - completely, finding current revisions from the newer committers.


Tags: server