youngmon/atlassian-qna huggingface dataset:
I have error ? Error: {"error": {"message": "Bad request", "detail": "bitbucket-pipelines.yml not f
Asked by Bhavya Yamali:

I am trying to trigger another repositories pipeline from my repositories pipeline using  
atlassian/trigger-pipeline:5.1.0 i am using bitbucket access token as the authentication but i am getting error that it can't find bitbucket-pipelines.yml file


Answers:
author: Igor Stoyanov
body: [@Bhavya Yamali](/t5/user/viewprofilepage/user-id/5176489) hi. Could you confirm that bitbucket-pipelines.yml file presented in **triggered** repository?  

Regards, Igor


Tags: bitbucket-cloud

cloud
How to set content-enconding in EXTRA_ARGS to deploy pipeline S3 BITBUCKET ?
Asked by Jo?o Scale?o:

1st attempt

![tentativ2.png](https://community.atlassian.com/t5/image/serverpage/image-id/246895iDAD7BE346AA4FC16/image-size/large?v=v2&px=999 "tentativ2.png")

<br />

2st attempt

![tentativa1.png](https://community.atlassian.com/t5/image/serverpage/image-id/246894i18E4DA9BDDDDA760/image-size/large?v=v2&px=999 "tentativa1.png")


Answers:
author: Jo?o Scale?o
body: [@Igor Stoyanov](/t5/user/viewprofilepage/user-id/4550492) 2st attempt it is correct and working! :D  
The pipeline is run end-to-end?  
thanks  

missing to add a flag that I found in the [documentation (here)](https://docs.aws.amazon.com/cli/latest/reference/s3/sync.html)   
It is: --metadata-directive

The final pipe was:  
![final pipe.png](https://community.atlassian.com/t5/image/serverpage/image-id/247586i7C617DA971A591A5/image-size/large?v=v2&px=999 "final pipe.png")


author: Igor Stoyanov
body: [@Jo?o Scale?o](/t5/user/viewprofilepage/user-id/5173687) hi.  
Try to use one-liner in \`EXTRA_ARGS\`:

```
 EXTRA_ARGS: "--include="*.txt" --include="MyFile?.txt"
```

Regards, Igor


Tags: aws

bitbucket-cloud

cloud
LFS error
Asked by Valerie Smith:

I can't figure this one out.

I'm getting a LFS error when I try to push saying that my account is out of file storage. But when I go to my repository, it is telling me that I still have over 800Mb of storage left. I've removed all bloated files from my push and am still getting the same error.

I've also tried deleting the repo and starting over.


Answers:
author: Syahrul
body: G'day, [@Valerie Smith](/t5/user/viewprofilepage/user-id/5176196) and Welcome to the community!

I believe the reason why you are blocked from making a push is that your account was previously on a **Free plan**, which only entitled you to 1 GB LFS storage.

<br />

These limitations is mentioned on our billing page, which I highly suggest you review to understand them better:

* <https://support.atlassian.com/bitbucket-cloud/docs/manage-your-plan-and-billing/>

That being said, you can check your current usage by going to **Workspace settings** \> **Plan details**.

I hope this helps.

Cheers,  


Tags: bitbucket-cloud

cloud
Bitbucket Api limit exceeded
Asked by Carmel Halabe:

Hey,

So I have this error message Bitbucket Api limit exceeded, and found the article below:

<https://support.atlassian.com/bitbucket-cloud/docs/api-request-limits/#How-calls-are-measured>. It is good article that explain how the request limit calculated, and I need to know how did I reached the limit.

In the past the developer waited to the next day and it resolved itself, but I would like to know what caused us reaching the limit, how can I get information about the activity that happened specially when you big team working on big project:

Activity / number of calls/ users/ pipeline.... stats or audit summary, abnormal activity?


Answers:
author: Aron Gombas _Midori_
body: As far as I know, you do **not** have that insight what and how caused exceeding the limit.

If I were you, I'd track down the problem on the client side (i.e. your side!) by adding extensive logging around the Bitbucket API calls. It would help you identifying how and when generates excessive load, which would be the input to optimize it (== reduce or defer the API calls if possible).


Tags: bitbucket-cloud

cloud
Instructions for repository cloning over https need updating.
Asked by fjeanson:

Instructions to clone a repository that required authentication isn't accurate.

Example:

git clone <https://username@bitbucket.org/teamsinspace/documentation-tests.git>

Issue:

This does not allow users to authenticate to pull or push to the repository.

The instructions on the Bitbucket help pages should be updated.


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

I'm not sure what exactly is inaccurate about the clone command you posted here. Could you please provide more details about the steps you follow and the output you get from each command?

If you clone a public repo like the one in your post, you will not get asked for a password. Pulling from a public repo doesn't require authentication either.

If you try to push to this repo:

* If there is no credential manager set for Git on your machine, or if there is one set but with no saved credentials for bitbucket.org, you should get prompted to enter a password. Please keep in mind that we have deprecated the use of account passwords for Git over HTTPS, so you will need to use an [app password](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/) instead.
* If a credential manager is set for Git on your machine with saved credentials for bitbucket.org, then the saved app password will be used.

For private repositories, the following applies for cloning, pulling, and pushing:
> If there is no credential manager set for Git on your machine, or if there is one set but with no saved credentials for bitbucket.org, you should get prompted to enter a password. Please keep in mind that we have deprecated the use of account password for Git over HTTPS, so you will need to use an app password instead.
>
> If a credential manager is set for Git on your machine with saved credentials for bitbucket.org, then the saved app password will be used.

Kind regards,  
Theodora


author: Jens Schumacher - Released_so
body: Hi [@fjeanson](/t5/user/viewprofilepage/user-id/5176112)   

Probably best to send that feedback straight to the team.   

Go to [bitbucket.org](https://bitbucket.org/dashboard/overview) and click the question mark in the top right corner. In the drop down menu you will find a "Feedback" button.

Submitting the feedback there will have a higher likelihood that the team reads your comment.   

Cheers,  
Jens

[Released.so](http://released.so/) - Release notes powered by Jira


Tags: bitbucket-cloud

cloud
How can I push to a new repository from within bitbucket pipelines
Asked by mateusz.maly.external:

Hi,  

I have a pipeline setup in which I create a brand new bitbucket repository and push some templates to it. Now I can get read access through the use of project and repository SSH keys. But I need to push code to the new repo so that does not work. How can I allow this one repo to have write access to other repositories within the workspace or projects?  

This is a brand new repo I'm creating every time so ideally some workspace level access would be best.

Thanks


Answers:
author: Theodora Boudale
body: Hi [@mateusz.maly.external](/t5/user/viewprofilepage/user-id/5175947) and welcome to the community!

I just wanted to add that there is one more option, other than the ones that Riley suggested: you could also use SSH.

1. Open on Bitbucket Cloud website the page of the repo where you run these builds.
2. Select **Repository settings** from the sidebar on the left
3. Select **SSH keys** from the new sidebar on the left
4. On this page, generate an SSH key pair
5. Copy the public SSH key that is generated, and add it to the workspace's SSH keys (from the workspace's settings \> SSH keys)

This way, your build will have write access to all the repos that belong to this workspace.

If you want to push to a newly created repo from your build this way, you will then need to use the SSH URL of this newly created repo. The format is as follows:

```
git@bitbucket.org:workspace-id/repo-slug.git
```

If you have any questions, please feel free to reach out!

Kind regards,  
Theodora


author: Riley Venable
body: To allow this new repository to have write access to other repositories within the workspace, you can use a Bitbucket Cloud Workspace Access Token with the following permissions: Repository Read (repository) and Repository Write (repository:write). You can create a Workspace Access Token with these permissions and include it in the URL, or provide it through an interactive prompt when using the Git CLI. You can also use OAuth by creating an account or bot account, giving that account write access in the branch permission to allow pushing directly to your main branch. Follow the steps listed above to create an OAuth consumer, record the keys, and add them as pipeline variables with the names CLIENT_ID and CLIENT_SECRET. Then, add the necessary script section to your bitbucket-pipelines.yml file.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
I am unable to delete an old branch
Asked by Kostiantyn Kulach:

I have a task to delete over 11k old branches.

I decided to test it manually on the first one and it shows me the error:

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/246779iE1985E22AAE3552E/image-size/large?v=v2&px=999 "image.png")

I have reviewed similar topics here and I see only 2 things preventing the branch deletion:

1. Some active PullRequests are present

2. Branch restriction

I have double-checked both and there are no PRs and no Branch Restrictions.

It doesn't work for me either through the UI or through the git command:

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/246780i7FC239712F6DC575/image-size/large?v=v2&px=999 "image.png")

Please, advise.


Answers:
author: Victor Menes
body: Hey Kostiantyn,

Let me see if I can help you with this... It would be good to take a look into [this Stack Overflow thread](https://stackoverflow.com/questions/35941566/git-says-remote-ref-does-not-exist-when-i-delete-remote-branch) that would be very useful for your current issue!

**From the thread:**

You need to specify the name of the branch on the remote repository; not the name of your remote branch. So, the meaning of git push origin -d origin/TEST, for example, is that you have a branch called **TEST** in the remote server **origin**

That being said, you could try out the below command with the values adjusted from your side:

    git push origin --delete test?

comments: author: Kostiantyn Kulach
body: Thanks, Victor! It helped!


Tags: bitbucket-cloud

cloud
Sourcetree pulls fail with 'fatal: Bitbucket DC OAuth Client ID must be defined'
Asked by GSHerber:

User attempts to pull a repo in Sourcetree and the operation fails as below, anyone have insight on the issue?

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch --no-tags origin  
fatal: Authentication failed for '<https://bitbucket.XXXX.com/scm/go/funwithalm.git/>'  
fatal: Bitbucket DC OAuth Client ID must be defined  
fatal: Authentication failed for '<https://bitbucket.XXXX.com/scm/go/funwithalm.git/>'  
fatal: Bitbucket DC OAuth Client ID must be defined  
fatal: Authentication failed for '<https://bitbucket.XXXX.com/scm/go/funwithalm.git/>'  
fatal: Bitbucket DC OAuth Client ID must be defined  
fatal: Authentication failed for '<https://bitbucket.XXXX.com/scm/go/funwithalm.git/>'

Sourcetree: 3.4.12

Git: 2.39.1

OS: Windows 10


Answers:
author: GSHerber
body: Working with user removed C:\\users\\XXX\\AppData\\Local\\Atlassian\\Sourcetree\\passwd file and pulls now work in Sourcetree.

Step 7: <https://community.atlassian.com/t5/Sourcetree-articles/Bug-Fix-Sourcetree-for-Windows-authentication-error-when/ba-p/1965968>

comments: author: Nachor_ Sherwin
body: Thanks for sharing this solution. I had same issue that was resolved using this.


Tags: bitbucket-server

server
Can I narrow page width in Bitbucket Markdown?
Asked by Buday_Gergely_Istvan:

<https://bitbucket.org/blog/introducing-the-new-fluid-width-bitbucket>

writes that

"The more code you can see on your screen, the easier it is to work with it. That's why we broke away from our traditional fixed-width pages, and redesigned every page on Bitbucket to expand to the full width of your screen, as wide as your browser will allow."

I write my README.md for documentation and having too wide lines makes it hard to read.

So this is not what I want, I disagree with the above quote.

I would like to have a Markdown command that sets the width of the text body.

Is this possible in Bitbucket Markdown?


Answers:
author: Riley Venable
body: Bitbucket Markdown does not have a command for setting the width of the text body. However, you can add CSS styles to your README to control the layout and appearance of the text. You can do this by adding a \`\<style\>\` tag to the top of your README.md file and defining the styles you want to use. Keep in mind that these styles will only be applied when the README is viewed in a web browser, and may not be honored by all Markdown viewers.

comments: author: Buday_Gergely_Istvan
body: I added the style tag at the very first line of README.md but it was displayed in verbatim both with Firefox and Chrome:

\<style\> article { width: 80em } \</style\>

(copy from the web page through the browser)

What shall I do?


author: Buday_Gergely_Istvan
body: Also, I have found this:

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

asking how to add custom CSS to a Markdown page.

Is it allowed now? And, where is it officially documented?


author: Buday_Gergely_Istvan
body: <https://jira.atlassian.com/browse/BCLOUD-6930>

says that embedded HTML is shipped:

"The Bitbucket Cloud team has successfully shipped this feature to our customers!"

but I do not see in the Markdown documentation:

<https://confluence.atlassian.com/bitbucketserver/markdown-syntax-guide-776639995.html>

how I could do embedded HTML.


author: Michael Leibl
body: I agree with [Buday_Gergely_Istvan.](https://community.atlassian.com/t5/user/viewprofilepage/user-id/5175410)

README.md should not span the full width of my screen. It's not readable. Imagine this thread would be 100% of this window.

Also setting it to 1200px is not a good idea: <https://jira.atlassian.com/browse/BSERV-6926>

A solution would be some fixed number of "em". Because this translates into a fixed number of characters per line, which is exactly what we needfor readability.


author: Michael Leibl
body: I tried adding

\<style type="text/css" rel="stylesheet"\> div { max-width: 50em; } \</style\>

in the first line of the README.md.

It works in the preview of VS Code but did not work on Bitbucket Server 7.19.3. It's not shown in verbatim, just not shown at all and not effect.


Tags: bitbucket-cloud

cloud

markdown
Unable to activate 2 step verification
Asked by cgaiani:

Hi,

I reinstalled the two-step verification app. Now trying to enable it, but not receiving email to finish enabling two-step verification.

Can you help me?

Thanks

Claudio


Answers:
author: Theodora Boudale
body: Hi Claudio,

Does this concern the account with the same email address as your community account?

This email address is not in any of our suppression lists. I also checked our email logs and we sent several emails to that email address the day you posted, all of them show to have been delivered to your mail server.

I would suggest the following:

1. First, check your Spam folder as Riley suggested
2. If the email is not there, please try re-enabling 2FA. If you still don't get the email, then please provide us with the following info:  
   * The date and time (+ timezone) you re-enabled 2FA for the second time. You can convert the timezone to UTC so that you don't share it here publicly. With this info, we can check our email logs for events at that time.  

   * Whether this issue concerns the account with the same email address as your community account. In case this issue occurs with a different account, please log in to <https://community.atlassian.com/> with the email of this other account and leave a comment here, so I can check its email.  

   * Confirm if you're trying to enable 2FA for Bitbucket via <https://bitbucket.org/account/settings/two-step-verification/manage>

Please feel free to let me know if you have any questions.

Kind regards,  
Theodora


author: Riley Venable
body: It is recommended to double-check the provided email address and spam or junk mail folders. If the issue persists, Claudio may need to contact Atlassian support for further assistance.


Tags: bitbucket-cloud

cloud
Same as everyone. https://bitbucket.org/psyko_chewbacca/l...
Asked by psyko_chewbacca:

Same as everyone.

<https://bitbucket.org/psyko_chewbacca/lpcmod_os/issues>

How to mass delete spam issues???


Answers:
author: Patrik S
body: Hi [@psyko_chewbacca](/t5/user/viewprofilepage/user-id/2480348) ,

Thanks for reaching out to the Community!

I've moved your post to a new question for easier tracking.

Our engineering team can help with either:

* flag issues as Spam
* completely remove issues

**Please keep in mind that there is a possibility for false positives to be included in the flagging or removal.** If you are concerned about irreversible loss, we would suggest requesting flagging, so that you can review the issues.

Before we proceed, ++please make your issue tracker private++ (*Repository Settings \> Issue Tracker \> Private issue tracker*) to prevent the creation of new spam issues. I will post an update here once our engineering team has mitigated the issue and when it's safe to make your issue tracker public again.

Afterward, please let us know whether you would like us to proceed with flagging issues as spam in your issue tracker or removing them :

* **Removal**: If you would like us to proceed with the removal, please provide a range of issue IDs to remove. You could also include issues that you want to be excepted from this range. E.g. for the range "200-3700 EXCEPT 3256-3260" we will remove issues with id from 200 until 3700, except for the issues in the range 3256-3260. Ranges should be fully inclusive, meaning the number on both ends will be removed.
* **Flagging as Spam:**If you would prefer to mark the issues as Spam, so you can review them later, please provide an Issue ID as a starting point. All the issues after the starting point ID will be marked as Spam.

Let me know in case you have any questions.

Thank you, [@psyko_chewbacca](/t5/user/viewprofilepage/user-id/2480348) !

Patrik S

comments: author: psyko_chewbacca
body: Please **Remove**all issues for range 131- 320 (inclusive)
Deleted forks origin repo, how to recreate links between origin and forks?
Asked by Jacques-Yves Bleau:

If a "master" origin repository, which has many forks, is deleted, the Bitbuclet "links" between the origin and the forks seems to be deleted too.

Then, if the origin repo is recreated with the same name and git history, is there a way in Bitbucket to re-link all the forks to this new identifcal repository so we could merge again within Bitbucket?

Using the API?   
Or will the forks simply need to be recreated also?

Thanks


Answers:
author: Patrik S
body: Hello [@Jacques-Yves Bleau](/t5/user/viewprofilepage/user-id/993388) ,

Thanks for reaching out to Atlassian Community!

I went ahead and created an internal support ticket using the email of your community account so we can look into this issue. You should be receiving an e-mail soon with the ticket link, but in case you don't receive it, please let me know so I can share the ticket link here.

Thank you, [@Jacques-Yves Bleau](/t5/user/viewprofilepage/user-id/993388) .

Patrik S

comments: author: Jacques-Yves Bleau
body: Thanks [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) !

I've received the link.


author: Jacques-Yves Bleau
body: For those looking for a solution, there is a suggestion ticket to implement this feature within the Bitbucket API:

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

You should vote for it if this feature would be useful for you.


Tags: bitbucket-cloud

cloud

fork
How to rename the project workspace without any impact?
Asked by Harshavardhanreddy_D:

Dear All,

I have a repository with the workspace name with ex-employee id and name.

And we have already removed the user(ex-employee) from bitbucket users who created the repository with his id. How can I rename the same without any impact.

Please advise.

Thanks

Harsha


Answers:
author: Oday Rafeh
body: [@Harshavardhanreddy_D](/t5/user/viewprofilepage/user-id/5162822) Welcome to the community.

Go to your Bitbucket account and click on the project workspace that you want to rename.

Click on the settings gear icon on the left-hand side and select "Workspace settings. "

In the "Workspace details" section, click on the "Edit" button next to the current workspace name.

Enter the new name for the workspace and click "Save. "

Bitbucket will now update the workspace name and all associated URLs, such as the URL for the repository. However, it is important to note that any external integrations or services that use the old workspace name will need to be updated manually.

Check that all your repositories and associated data are still accessible and working as expected.

Ensure that all team members are aware of the workspace name change and update any relevant documentation or internal processes.

It is important to note that renaming a project workspace can have an impact on external integrations or services that use the old workspace name, so it's important to review all integrations and update them as necessary.


Tags: bitbucket-cloud

cloud
Delete large file from the repository
Asked by sunny386:

I want to delete the large from the repo. how can I do it and decrease the repo size?

I want to reduce the size of the repo, can someone please help?

I have manually deleted the file but the repo size is still same, running git gc may resolve the issue. Please run.


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

I see you have raised an internal ticket with us, and one of my colleagues already executed a GC on your repository which reduced the size back to 153MB.

Feel free to reach out to community again in case you need further assistance in the future :)

Thank you, [@sunny386](/t5/user/viewprofilepage/user-id/2581407) !

Patrik S


author: Esther Strom
body: Hi, [@sunny386](/t5/user/viewprofilepage/user-id/2581407) - this is a user support community, not Atlassian tech support. We don't have access to your repos.

If you're having issues, please open a ticket with Atlassian support at <https://support.atlassian.com/contact>.

I'd also recommend you edit this post to remove your repo and file names, as those shouldn't be publicly available.


Tags: bitbucket-cloud

cloud

garbage-collection