youngmon/atlassian-qna huggingface dataset:
Recategorize a branch to be a release branch?
Asked by Levi Wallach:

We have a branch that was created that is not categorized, but we now want to make it it's own release branch. Is there a way to recatogize a branch/move it into the release "folder"?


Answers:
author: Caroline R
body: Hi, [@Levi Wallach](/t5/user/viewprofilepage/user-id/3629309)!

Thank you for reaching out to Atlassian Community!

It's not possible to recategorize a branch to be a release branch, however, you can create a new release branch and merge this not categorized branch with the release one.

I hope this helps, but in case it doesn't, please feel free to share additional information about your business case, so I can check if there is anything else we could do here.

Thank you!

Kind regards,  
Caroline

comments: author: Levi Wallach
body: Thanks. I assume after merging, it's then safe to remove the old branch, yes?


author: Caroline R
body: Hi, Levi!   

Yes, you should feel safe deleting the branch after the merge. The only reason to keep this branch after a merge is if you plan to make any more changes to the same branch, which I believe it's not your case.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Unable to Access Repository
Asked by Micah:

I tried to report the issue but it sent me here because it wasn't specifically about workspace invites (what).

I am unable to access one of my repositories as of this morning. When I try to pull from the repo it tells me the repo does not exist. Yet the repo appears in my repo list. The statuses page shows everything is operational.

![Screen Shot 2021-08-02 at 10.22.01 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/154076i650CF5B8D450F6B7/image-size/large?v=v2&px=999 "Screen Shot 2021-08-02 at 10.22.01 AM.png")

Issue code: 652b165036674544a16bd283f31c7452

If I missed where I'm supposed to submit these, please let me know. It seems weird that I would need to submit this to the community help sections. Other than Bitbucket itself, I don't know how anyone is supposed to help me with this.


Answers:
author: Caroline R
body: Hi everybody,

We had an issue today and some repositories were not accessible on Bitbucket cloud in the UI or command line per StatusPage update:

* <https://bitbucket.status.atlassian.com/incidents/zlvln4f0thsx>

We appreciate your patience and understanding while our team was working to address the issue. We sincerely apologize for all inconvenience caused.

The root cause was identified as incorrect configuration applied when trying to onboard additional storage capacity for Bitbucket Cloud. This resulted in a subset of storage capacity becoming unavailable. The problem got resolved after the changes were rolled back the misconfiguration and Bitbucket services were restarted.

The repositories should now be fully accessible and services are restored.  
Please let us know if we can help with anything else.

Kind regards,  
Caroline


author: Wilkins White
body: I am also having this issue

$ git pull  
fatal: '/opt/micros/data/cvs/vp0300/data/d-598/r-14511598' does not appear to be a git repository  
fatal: Could not read from remote repository.


author: Andrew Feitosa
body: Same here


author: HDardenne
body: Same, cannot browse, pull or push commits ... Got this  
fatal: '/opt/micros/data/cvs/vp0653/data/d-270/r-90821270' does not appear to be a git repository

comments: author: Micah
body: Getting a similar error through terminal


author: Ral Itong
body: Having the same problem as well


Tags: bitbucket-cloud

cloud
how to extract delta changes while comparing two version
Asked by raghu:

We create new version/branch for each sprint in Bitbucket, while doing we compare current and older version to to see what all changed files are there,

Is there a way we can extract this comparison results along with files and folder structure to local respo?


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

Welcome to the community.

Allow me to suggest some options you can consider:

1. You can compare the 2 branches locally by running the below command:

   ```
   git diff --stat branch1...branch2
   ```

2. Optionally, you can save the result by appending **\>\> result.txt** in the Git diff command.

   ```
   git diff --stat dev...remaster >> result.txt
   ```

3. You can explore [Bitbucket Pipelines](https://bitbucket.org/product/features/pipelines) (if you haven't used it) to automate it for you. The idea is to run a Pipelines build by comparing those 2 branches using the same command and optionally save the result somewhere.

Hope it helps and let me know if you have further questions that I can help with.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
File missing in wiki page
Asked by Ray Lin:

Dear community,

I have one bitbucket repository with wiki pages only and contains no source code. I used to write my own developing notes in that repository. Today I found that one of my wiki pages created on last Friday disappeared and thus I git clone it to my hard disk. I surprisingly discovered that the editing history are all gone after Jun 18. Here is 'git log' output:

Author: rwlin-meetingreat \<rwlin@meetingreat.com\>  
Date: Fri Jun 18 15:18:42 2021 +0000

Edited online

commit c766130376b28f031856d40185226db83c84049a  
Author: rwlin-meetingreat \<rwlin@meetingreat.com\>  
Date: Fri Jun 18 15:08:59 2021 +0000

Edited online

commit 25c8db0302fd630970fc3c54207a38167e2173f9  
Author: rwlin-meetingreat \<rwlin@meetingreat.com\>  
Date: Fri Jun 11 04:44:05 2021 +0000

Edited online  

.....  

What happened? Can I save back my files?? Thanks a lot!  

Ray


Answers:
author: Caroline R
body: Hi, [@Ray Lin](/t5/user/viewprofilepage/user-id/4498657)! Welcome to the community!

Thanks for reporting this issue. I have created a ticket for our support team to investigate this case. You will receive an email with this information and they will contact you to work on that.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud

wiki
Android CI Build as Artifact
Asked by tarek_o:

Hello,

I am trying to build my android project through the bitbucket pipeline and use this built APK as an artifact inside another step to run my UI Automation tests on. Can anyone please inform me of the normal process or any useful documentation.

Thank you.


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

Thank you for reaching out to the community.

I believe that's already the normal process on how you can pass the built APK in another step on Pipelines using [Artifacts](https://support.atlassian.com/bitbucket-cloud/docs/use-artifacts-in-steps/).  
In this process, you can also use [multi-steps](https://bitbucket.org/blog/multiple-steps-in-bitbucket-pipelines) to pass your built artifact from one step to another:  
**Sample multi-steps:**

```
pipelines:  default:    - step:        name: Build        script:          - #Your commands here        artifacts:          - app/build/outputs/**    - step:        name: UI Test        script:          - #Your commands here
```

You can also check out this [blog](https://bitbucket.org/blog/automate-publishing-your-android-application-with-bitbucket-pipelines-and-gradle) that might help.

Hope it helps and let me know if you have further questions.

Regards,  
Mark C

comments: author: tarek_o
body: Thank you [@Mark C](/t5/user/viewprofilepage/user-id/1210823) for your reply!  
My previous issue was with the directory of where the Artifacts are saved. With a lot of debugging and testing, I was able to find the Artifacts directory in the next step.

Regards,

Tarek_O


author: Mark C
body: Glad to know you're able to find the Artifacts directory in the next step.  

Regards,  
Mark C


Tags: android

automation

bitbucket-cloud

bitbucket-pipelines

cloud

continuous-delivery
unable to login to bitbucket
Asked by Jyothi:

I have signup the bitbucket but when I am trying to login it shows invalid username and password.


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

You mentioned that you signed up in Bitbucket, so I assume you mean Bitbucket Cloud, <https://bitbucket.org/> ? Could you please confirm?

Do you get this error when logging in to the website? Log in to the website is possible with email+password only (so not with username). The username is only used locally when you try to clone/pull/push to a repo.

If you're still facing issues, please let us know whether you're indeed using Bitbucket Cloud and where exactly you see this error (a screenshot would be helpful) so we can better help you.

Kind regards,  
Theodora
bitbucket ci event webhook doesnt return the pullrequest
Asked by Ron Yehuda:

Hi, new here :)

we are implementing a notification mechanism triggered by webhooks,  

commonly, when a build system\\ci tool updating its status on a commit,   
a webhook get triggered with the event payload.  

as in the docs:  
<https://support.atlassian.com/bitbucket-cloud/docs/event-payloads/#Build-status-updated>

there are 2 events:

*repo:commit_status_created payload*

*repo:commit_status_updated*   

**but unlike github/gitlub , bitbucket doesn't adds the pullrequest,**   
**if the commit is part of a pull request.
<br />** how can i tell what is the pull request id from those ci events ?  
dont webhooks should be triggered for pipelines events?


Answers:
author: Caroline R
body: Hi, [@Ron Yehuda](/t5/user/viewprofilepage/user-id/4498140)! Welcome to the community!

Indeed, Bitbucket doesn't add the pull request if the commit is part of a pull request. In this case, would you like me to create a feature request to request the implementation of this field to the payload?

If you are not familiar with our Feature Request Policy, you can read more about it [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).

Please, feel free to share any additional questions regarding this subject.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud

pull-request

webhook
Controlling the "Merge" button via automation
Asked by Zvika Castel:

hi,

At first, just to make sure, we use BitBucket server version 7.6.0

I need to disable the "merge" button via Jenkins automation on a PR open.  
this is because as long as the build is not successful, the merge button must be disabled.

The disable action is easy. but...  
at the end of successful build, I can't enable the merge button because I can't tell if all other conditions of the merge button are met, like # of approvals.

any idea how/if can I get this info from the merge button ?


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: Bitbucket server project or repo settings let you define merge conditions, including the number of successful builds required. If the condition is not met, the merge button should be disabled.

Internally Bitbucket performs all merge-checks \[1\] sequentially and if one or more fail the PR can't be merged, i.e. the merge-button is disabled.

Can you elaborate a bit more on how you use Jenkins automation? Are you developing your own app/add-on?

\[1\] <https://confluence.atlassian.com/bitbucketserver/checks-for-merging-pull-requests-776640039.html>

comments: author: Zvika Castel
body: although this algorithm is not bullet proof...

PR open triggers a Jenkins job to perform a build, and, in addition to other merge-checks, the build must be successful. but BitBucket's merge-check is on # of successful build(s) and I need the last build to be successful, not just any # of builds, so I ca't use this merge-check, meaning I have to take care of the "Enable merge button' at the end of the build by myself via kind of BitBucket's automation command.

but I can't do this unless all other merge-checks are already done.

this is the info I want to get from BitBucket - are there any uncompleted merge-checkes ?

Atlassian could solve this situation by add a merge-check for the last build.


Tags: bitbucket-server

server
Why is my repo readonly?
Asked by Ian Macdonald:

I see the update on

<https://bitbucket.status.atlassian.com/> about maintenance but it also say "An active repository/snippet will be read-only for up to 30 minutes" I have a report from a user saying they could not commit at 3:30 am. I tried at 10:24 and it is now 11:11am any my repo is still readonly

Whats going on, why have we been readonly for more that 30 minutes.


Answers:
author: Caroline R
body: Hi, [@Ian Macdonald](/t5/user/viewprofilepage/user-id/4497789)! Welcome to the community!

I saw that you created a ticket with our support related to the same question, so to avoid any possible misunderstandings or miscommunication that may arise from discussing the same matter on two different platforms, let's focus on the ticket instead.

Once the ticket is resolved, feel free to share the resolution here to help other community members that may have the same issue/question.

Kind regards,  
Caroline

comments: author: Ian Macdonald
body: This is resolved, Support was able to set our repo back into Read Write mode, since that was not done after the maintenance was complete. I look forward to more details via the support ticket on why the account was left in ready only mode after the maintenance was done.


author: Hana Ku?erov?
body: Hi [@Ian Macdonald](/t5/user/viewprofilepage/user-id/4497789) ,

welcome to the Atlassian Community!

In this situation I would strongly recommend you to [contact directly Atlassian support](https://support.atlassian.com/contact/). They will surely give some explanation of your situation.

comments: author: Ian Macdonald
body: still read only and no response from a support ticket, is anyone from Atlassian going to respond?

<https://bitbucket.status.atlassian.com/>

still says

Jul 30, 2021

Unresolved incident: Storage infrastructure maintenance - repositories briefly read-only.


Tags: atl-rvw

bitbucket-cloud

cloud
Authentication and authorization from my local
Asked by ashwinvodnala:

Hi Team,

I am using Cloud version of Bitbucket and having issues cloning git hub repo from our project facing the below error.

Password for '[https://username@bitbucket.org](https://avodnala@bitbucket.org)':

remote: Invalid username or password

fatal: Authentication failed for '[https://bitbucket.org/myorg/1-org.git/](https://bitbucket.org/adtcs/1-org.git/)'

I am on MacOS and flowed the below document for setting it up.  

<https://www.atlassian.com/git/tutorials/install-git#install-the-git-credential-osx>  

Please suggest if there is any other way to authenticate from my local.  

Thanks


Answers:
author: Claudio Gonzalez
body: Hi [@ashwinvodnala](/t5/user/viewprofilepage/user-id/4497333) ,

I use the ssh-key authentication.

Please follow the next steps to MacOS.

1. Open terminal and execute "ssh-keygen" (only press "enter" in each step)

2. execute \~/.ssh/id_rsa.pub then copy all text from "ssh-rsa AAAAB3N...."

3. Open BitBucket and select "Personal Settings" and after select "SSH Keys"

![Screen Shot 2021-07-30 at 16.03.20.png](https://community.atlassian.com/t5/image/serverpage/image-id/153837i81EED44661DF838F/image-size/large?v=v2&px=999 "Screen Shot 2021-07-30 at 16.03.20.png")

4. Enter the "Label" and "Key" from step 2

![Screen Shot 2021-07-30 at 16.04.09.png](https://community.atlassian.com/t5/image/serverpage/image-id/153839i1BD11ECB45745E3E/image-size/large?v=v2&px=999 "Screen Shot 2021-07-30 at 16.04.09.png")

5. Return to terminal on MacOS and execute

5.1. eval $(ssh-agent)

5.2 ssh-add \~/.ssh/id_rsa.pub

6. for check execute "ssh -T git@bitbucket.org"

After the you can use all commands git only with "git@bitbucket.org:\<path_repo\>/\<repo\>.git

Please, any doubt you can read: <https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/>


Tags: bitbucket-cloud

cloud
Security issue with the latest available AWS SAM pipe available
Asked by Stuart Smiley:

Recently we received a message from AWS to "Update all existing SAM CLI installations to version 1.25 or later." as soon as possible. So I went to <https://bitbucket.org/atlassian/aws-sam-deploy> to see what version was available in the latest pipe for use in our bitbucket pipeline. Looking at the was-sam-deploy/Dockerfile for master, it appears the version available is v1.18.0, which is well below the 1.25 or later recommended by AWS.   

I am using version 1.26 of the SAM CLI when I work locally, but our test and production deployments use a bitbucket pipeline which appears to be using a less secure version of the SAM CLI  

What is involved in getting an update to the Docker file to bump up the version of the aws SAM CLI in master.


Answers:
author: Oleksandr Kyrdan
body: Hi [@Stuart Smiley](/t5/user/viewprofilepage/user-id/4497425)

Thank you for your question!

We're investigating it and notify you.

Best regards,  
Oleksandr Kyrdan


Tags: bitbucket-cloud

cloud
Running out of memory in pipelines - tests pass locally w/ 8gb ram laptop
Asked by Christopher Klapperich:

locally on a laptop with 8gb ram and a 2 core CPU, the tests pass easily.

however the tests fail on bitbucket due to out of memory. Error message is:

"Container 'Build' exceeded memory limit."


Answers:
author: Theodora Boudale
body: Hi [@Christopher Klapperich](/t5/user/viewprofilepage/user-id/2506021),

Each step in a Pipelines build has 4 GB of memory available, unless you configure size: 2x, then the step will have 8 GB of memory available.

The build container is given 1024 MB of the total memory. If you are using services in a certain step, then each one gets 1024 MB memory by default, unless you have configured service memory differently in your yaml file.

If you subtract the above from the total memory of the step, you'll get the memory available for the build to run.

Could you give us some more details about this build, e.g. are you using any services in the step that fails? And are you using the size: 2x flag in that step?

You can try adding the following commands at the beginning of the script of the step that fails:  

```
- while true; do ps -aux && sleep 30; done &- while true; do echo "Memory usage in megabytes:" && echo $((`cat /sys/fs/cgroup/memory/memory.memsw.usage_in_bytes | awk '{print $1}'`/1048576)) && sleep 0.1; done &
```

These will print memory usage during the build which can be useful for understanding what processes use a lot of memory.

You can also try debugging this locally with Docker, so that you don't consume more build minutes trying to debug this:

* <https://support.atlassian.com/bitbucket-cloud/docs/debug-pipelines-locally-with-docker/>

There is an example in the above documentation, which how you can set the memory limit when debugging locally to replicate Pipelines as closely as possible (you can set either 4 GB or 8 GB if the step has size: 2x).

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

Kind regards,  
Theodora


Tags: bitbucket-pipelines
No content to map to Object due to end of input
Asked by Badri Acharya:

When trying to use the REST API for bitbucket to add user to group getting the below error

```
{?    "errors": [        {?            "context": null,            "message": "No content to map to Object due to end of input",            "exceptionName": "java.io.EOFException"        }?    ]}?
```

Api endpoint used -

### /rest/api/1.0/admin/groups/add-users {#toc-hId-1258960887}

parameters

    {    "group": "group",    "users": [        "user1",        "user2"    ]}


Answers:
author: Georgeta Pojoga
body: Have you fix it some way? I'm experience the same issue.


Tags: bitbucket-server

server
Sync approval of pull request to commits list
Asked by Royal_Dimerco:

How to show approval of pull request in commits list? we would like check all commits have been approved, thanks.


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

Welcome to the community.

I'm afraid it is not possible to show pull request's approvals in the **Commits** page list.  
We do have an existing feature request for it that can be located through this link. - <https://jira.atlassian.com/browse/BCLOUD-20792>  
You can upvote and watch it for now so that you'll be notified of any updates from our team when the feature becomes available on Bitbucket Cloud.  
Please do note that we don't have an exact ETA for the feature request as all new features will be implemented according to our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).

Right now, you will have to manually view pull requests to check for approvals.

Let me know if you have further questions.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
How to report SourceTree Bugs & Suggestions
Asked by Oleg Detinin:

I compiled a list of bugs and some suggestions for SoureTree. What will be the best way to send this list ?

Email ? This forum ?

Thanks,

Oleg


Answers:
author: Norman Abramovitz
body: Follow the directions at the url below to report bugs and suggestions for sourcetree.

<http://www.sourcetreeapp.com/support/>

comments: author: Oleg Detinin
body: Thanks a lot.


author: Dave Van den Eynde
body: No dice. It's too complicated. I need either a "support entitlement number" or a "hosted product url". All I want to do is contribute!


author: stevestreeting
body: You can report issues here in AAC or at <https://jira.atlassian.com> if you don't need a private support response.


author: Dave Van den Eynde
body: Worked like a charm. Would be nice if the UI would direct to the correct site directly.


author: Dave Van den Eynde
body: Worked like a charm. Would be nice if the UI would direct to the correct site directly.

comments: author: Dave Van den Eynde
body: Can't delete this. Was to be a comment.
How do I abort/revert an uncommited merge with Sourcetree and Mercurial?
Asked by rgreig:

I'm using source tree with a mercurial repository. If I make a merge and decide against before I've commited it, how do I roll back to the exact state I was in before I hit the merge button.

Reverting seems to change all the file contents back to a previous version but then wants to commit all those changes as a new version.

I've been working round this by binning the repo and cloning it again but surely there must be to just abandon uncommited changes?


Answers:
author: Nic Brough -Adaptavist-
body: [https://answers.atlassian.com/questions/55730/how-do-i-revert-abort-a-merge-using-source-tree](/questions/55730/how-do-i-revert-abort-a-merge-using-source-tree)