youngmon/atlassian-qna huggingface dataset:
I can't find my repo!
Asked by Ian Hobson:

I switched to Linux about a year ago, and have not needed to use bitbucket since.

Today I am trying to set up git cola with a new repo, and I switched back to windows to see how to access it in .git/config.

I found url = \[REDACTED\]

This works fine (I have pushed to it).

However I wanted to log in to create a new repo, and when I log into bitbucket.org to create my new repo, I cannot find playbooks.git?

Where is it hiding?

Regards

Ian

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


Answers:
author: Ben
body: Hi [@Ian Hobson](/t5/user/viewprofilepage/user-id/5542496)

You have access to multiple workspaces, so it's likely that the workspace that has loaded by default is not the workspace that contains that repository. I can see that the repository you mentioned does exist. We had a UI change in the last year that is highlighted below which explains this behaviour:

* <https://bitbucket.org/blog/improving-navigation-for-bitbucket-users>

Click your **avatar** in the **top-right hand corner** , select **All Workspaces**and then click the workspace you've mentioned from the list - you should see the repositories here, we have an article on this below:

* <https://confluence.atlassian.com/bbkb/workspace-has-disappeared-incorrect-workspace-loaded-1319573739.html>

I hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
aws-s3-deploy pipe - How to setup custom Cache-Control?
Asked by Milan Gligorijevic:

Hi,  

In the documentation for the **aws-s3-deploy** pipe, it states the following: CACHE_CONTROL: Caching behavior along the request/reply chain. Valid options are no-cache, no-store, max-age=\<seconds\>, s-maxage=\<seconds\> no-transform, public, private. Defaults to unset.  

<br />

How can I create a cache-control value with the following setting - '**public, max-age=604800, immutable**'? This is a completely valid value, but I am unable to set it through the pipe.

Thanks in advance,  
Milan


Answers:
author: Milan Gligorijevic
body: I managed to solve the problem; the issue was caused by spaces. If I set '**public,max-age=604800,immutable**', everything works fine.


Tags: aws

bitbucket-cloud

bitbucket-pipelines

cache-control

cloud

pipes

s3
How to rebase a feature branch/pull request using Rest API
Asked by mohan yadav:

Please suggest me Rest API endpoint to rebase feature branch or pull request.


Answers:
author: Theodora Boudale
body: Hi Mohan,

There is not API endpoint for this, as Saxea _Flowie_ already mentioned.

We have the following feature request that you can vote for:

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

This concerns syncing the source branch of a PR via a rebase from the UI. I could create another feature for an API endpoint as well, please feel free to let me know if you'd like me to do that.

Kind regards,  
Theodora


author: Saxea _Flowie_
body: There is not support for this via API. However, you might want check out [Flowie](https://marketplace.atlassian.com/apps/1231101), a Bitbucket cloud app we provide, which does support [rebase](https://flowie.app/docs/en/plugins/merge) as part of the workflows.


Tags: bitbucket-cloud

cloud
How to sync branch/pull request with master branch
Asked by mohan yadav:

I have a feature branch let say branch1 and have pull request of branch1 with master branch. I want to merge that pull request but before merging to master I want do SYNC of my feature branch or pull request . Please suggest me Rest API endpoint for the same.


Answers:
author: Saxea _Flowie_
body: Hi [@mohan yadav](/t5/user/viewprofilepage/user-id/5418092)

Currently there's no API, there's a feature request [here](https://jira.atlassian.com/browse/BCLOUD-20489) for this.

You might be interested in [Flowie](https://marketplace.atlassian.com/apps/1231101), a Bitbucket cloud app we provide, that can [automate this process and enforce it via checks](https://flowie.app/docs/en/plugins/branch-sync).

Hope it helps!


Tags: bitbucket-cloud

cloud
explanation of self.hosted
Asked by Kieran Donovan:

Could you please give more context to the interpretation of self.hosted within the pipilines.yml.

i.e.

- is this any machine from a pool of runners that have been added as repository runners and authenticated ?

- if I submit a pull request from a machine that is not a registered runner, should the pipeline still execute on an existing registered runner ?

Thanks for your help.


Answers:
author: Ben
body: Hi Kieran,

Any runners that you create will have a list of defined labels that are configured as part of the setup process. When you call the self.hosted parameter in your YML config, Bitbucket will check the current ONLINE runners and execute builds on any available runner that matches those labels - more information may be found here:

* <https://support.atlassian.com/bitbucket-cloud/docs/configure-your-runner-in-bitbucket-pipelines-yml/>

If the runner is not running, or is not registered in your workspace/repository runners - the build will not execute on this runner.

I hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

bitbucket-data-center

cloud

data-center

self.hosted
what is user, group, or access key
Asked by SivaRanjini Palakurthi:

Who usually come under a user, group, or access key while setting this as an exception in setting up bitbucket repository settings like (eg: Prevent changes without a pull request except a user, group, or access key)


Answers:
author: Ku?be
body: Hi [@SivaRanjini Palakurthi](/t5/user/viewprofilepage/user-id/5542158)   

Welcome to the community!  

In Bitbucket repository settings, when you configure exceptions such as "Prevent changes without a pull request except for a user, group, or access key," the following typically come under these categories.  

1. User: Individual accounts (e.g., Alice, Bob).  
2. Group: Collections of users (e.g., DevTeam, QA).  
3. Access Key: SSH keys for automation (e.g., Jenkins, GitLab CI).

By setting exceptions for these categories, you can allow specific users, groups, or automated processes to bypass certain restrictions.  

please let us know if you have any more questions.  

- Ku?be


Tags: bitbucket-data-center

data-center
atlassian/bitbucket-upload-file pipe setup takes too long
Asked by sandesh:

This is a step in my pipeline:

```
- step:
    name: 'Upload APK to Downloads folder'
    script:
      - pipe: atlassian/bitbucket-upload-file:0.7.2
        variables:
          BITBUCKET_ACCESS_TOKEN: $BITBUCKET_ACCESS_TOKEN
          FILENAME: "app/build/outputs/apk/release/*.apk"
```

The build step for this step takes much longer than I would expect, mainly because it has to pull atlassian/bitbucket-upload-file:0.7.2 each time. I am wondering whether this can be cached or if there are any other ways to speed up this process.

This is the image that I am using:  

```
image: mingc/android-build-box:1.28.0
```


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

A pipe starts a new Docker container and yes, it is possible to cache the pipe's Docker image. You just need to adjust the definition of your step as follows:

```
- step:
    name: 'Upload APK to Downloads folder'
    script:
      - pipe: atlassian/bitbucket-upload-file:0.7.2
        variables:
          BITBUCKET_ACCESS_TOKEN: $BITBUCKET_ACCESS_TOKEN
          FILENAME: "app/build/outputs/apk/release/*.apk"
    services:
      - docker
    caches:
      - docker
```

Please note that this will work only if you're not using the pre-defined Docker cache elsewhere in your yml. If you are building a Docker image in a different step of your yml and you want to use cache for that as well, you will need to adjust the cache definition for that different step.

An example of that is the following (feel free to ignore this example if you are not building a Docker image in a different step that you want to cache):

```
- step:
    name: Build Docker image
    script:
      - docker load -i docker-cache/* || echo "No cache"
      - docker build .
      - mkdir -p docker-cache && docker save $(docker images -aq) -o docker-cache/cache.tar
      - docker image ls -aq
    caches:
      - my-docker-cache
    services:
      - docker
```

And you would need a definitions section in your yml file as follows (this is using a smart cache, that gets updated when you change the Dockerfile):

```
definitions:
  caches:
    my-docker-cache:
      key:
        files:
          - Dockerfile
      path: docker-cache
```

Please feel free to reach out if you have any questions!

Kind regards,  
Theodora

comments: author: sandesh
body: Thank you for help [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) ! This helped speed up the pipeline


author: Theodora Boudale
body: You are very welcome, [@sandesh](/t5/user/viewprofilepage/user-id/5542036)! Please feel free to reach out if you ever need anything else!


Tags: bitbucket-cloud

cloud
Custom Commit message
Asked by Siva Abbannagari:

I wanted to enforce the following format in the commit message can yopu pleaes help on how to do it

JIRA: PROJ-123123

Verison: 1.1.2

Also Check the status of JIRA it should be in progress.

should be triggered on push or merge

decline the push or commit if

PROJ-123123 is not in progress and if its a child ticket parent ticket should alos be in progress


Answers:
author: Aron Gombas _Midori_
body: [@Siva Abbannagari](/t5/user/viewprofilepage/user-id/4975374) The Better Commit Policy app does exactly what you look for on the Data Center platform for many years, and we are already working on its Cloud version.

All the features you mention (and more) will be supported on Cloud!

Do you want to get access to this before the public release?


author: Saxea _Flowie_
body: Hi [@Siva Abbannagari](/t5/user/viewprofilepage/user-id/4975374) ,

We provide [Flowie](https://marketplace.atlassian.com/apps/1231101?tab=overview&hosting=cloud), a Bitbucket cloud app for automating workflow that supports enforcing a [commit policy](https://flowie.app/docs/en/plugins/commit-policy), allowing you to enforce the format of the message using a regex, among other things. Currently, it doesn't check against JIRA/status, but we are going to add a rule for that soon!


author: Mikael Sandberg
body: You would to create pre-receive hooks in order to enforce the commit message format, or there are apps in the [Marketplace](https://marketplace.atlassian.com/search?query=commit) that can enforce the format and check the status of the associated Jira issue.


Tags: bitbucket-cloud

cloud
How to disable merging master in release branches?
Asked by Bas Prins:

Hi,

We are trying to prevent anybody accidentally pulling master into a release branch. So specifically, we are looking for a way to disable this option.

Now, when we click the release branch, it states something like "**28** commits behind "master. *Sync now*". When we'd accidentally click the sync now button, all commits from master would end up in the release branch, obviously, something we'd never want !

We can't seem to find the setting that disables "syncing with master". We probably overlook the obvious.

Can you kindly tell us how to disable this option for release branches?


Answers:
author: Saxea _Flowie_
body: Hi [@Bas Prins](/t5/user/viewprofilepage/user-id/4141977) ,

If the user has write access to the branch, it will have the option to sync. So you need to remove write access on [branch restrictions](https://support.atlassian.com/bitbucket-cloud/docs/configure-a-projects-branch-restrictions/). You can limit the users who have access or only allow merge via pull requests. Users would still be able to create a PR 'main -\> release' and merge it, but it is a lot less likely to happen by accident.

If you need greater control, you can use [Flowie](https://marketplace.atlassian.com/apps/1231101), a Bitbucket addon we provide, which gives you fine control over the workflow and helps enforcing it. Using Flowie you can [disable merge](https://flowie.app/docs/en/plugins/merge) for certain conditions. For instance, in your case, a PR with 'main -\> release/\*' can never be merged.

comments: author: Bas Prins
body: Aha, that's it. I added myself as people with write access to master. Removing myself from that list indeed grays out the sync now link.

Thx!


author: Nicolas Grossi
body: [@Bas Prins](/t5/user/viewprofilepage/user-id/4141977) You are right, my bad.


author: Nicolas Grossi
body: [@Bas Prins](/t5/user/viewprofilepage/user-id/4141977) welcome! You might check this thread: <https://community.atlassian.com/t5/Bitbucket-questions/How-do-I-prevent-merging-pull-requests-to-master-except-by-a/qaq-p/824230>

HTH

Nicolas

comments: author: Bas Prins
body: Hi [@Nicolas Grossi](/t5/user/viewprofilepage/user-id/676185)

That's the other way around I am afraid. That prevents pull requests =\> master.

We want to prevent **pulling** master into a release branch.

Or am I missing the point here?

Thx

Bas


Tags: bitbucket-cloud

cloud
My account now has more than 30 repositories created today
Asked by wiphatt:

I am importing my repositories from work one bitbucket account to another and when my repositories reached 30, I saw this message: **"Your account now has more than 30 repositories created today. Don't worry! You can still create more"**  
My bitbucket workspace URL: \<url_removed\>. Any suggestion?


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

I'm afraid that we can no longer exempt workspaces from this limit. This limit applies to personal workspaces on the Free plan to prevent abuse and it lasts 24 hours. After a day, you should be able to import more repositories into the workspace.

Just a heads up, I removed the workspace URL from your post for privacy reasons.

Kind regards,  
Theodora

comments: author: wiphatt
body: Thanks so much Theodora.


author: Nicolas Grossi
body: [@wiphatt](/t5/user/viewprofilepage/user-id/5541922) welcome! I guess someone from Atlassian will except your account, see: <https://community.atlassian.com/t5/Bitbucket-questions/Your-account-now-has-more-than-30-repositories-created-today-Don/qaq-p/1958760>

HTH

Nicolas


Tags: bitbucket-cloud

cloud
E-mails em lista de supress?o
Asked by Jose Guilherme:

Boa tarde, tudo bem?

Minha organiza??o est? com alguns e-mails na lista de supress?o. Por favor, poderia providenciar a remo??o?


Answers:
author: Patrik S
body: Hello [@Jose Guilherme](/t5/user/viewprofilepage/user-id/5283198) ,

thank you for reaching out to the community!

I've found some emails under your company's domain that were indeed on Atlassian suppression list, as they were bounced back by your email provider.

I went ahead and removed those emails from the suppression list, so they should be receiving new emails with no issues.

Let us know in case you have any questions.

Thank you, [@Jose Guilherme](/t5/user/viewprofilepage/user-id/5283198) !

Patrik S

comments: author: Jose Guilherme
body: Ol? Patr?cio S,

Obrigado!


Tags: cloud

jira-service-management
Request an education license for additional large file storage (LFS) space
Asked by Sean Duane Stiltner Jr.:

I am a Student at SNHU and my Professor has requested I request education license how do i do this


Answers:
author: Ku?be
body: Hi [@Sean Duane Stiltner Jr.](/t5/user/viewprofilepage/user-id/5541799)   

Welcome to the community,  

To request an education license for additional large file storage (LFS) space on Bitbucket, you need to visit: <https://bitbucket.org/product/education>  

If you encounter any issues or need further assistance, you can contact Atlassian support directly for help with your request.

comments: author: Sean Duane Stiltner Jr.
body: Thank you


Tags: bitbucket-cloud

cloud
??????????????????Repository????????
Asked by ???:

?????????????????????Repository

![??2024-07-11 23.14.24.png](/t5/image/serverpage/image-id/335020i395963347A248F9A/image-size/large?v=v2&px=999 "??2024-07-11 23.14.24.png")


Answers:
author: YY Brother
body: Hi [@???](/t5/user/viewprofilepage/user-id/5541746)

??????? BB??????????Create a workspace -\> create a project -\> create your repo

Thanks,

YY?


Tags: bitbucket-unknown-hosting-type

unknown-hosting-type
I am seeing a message as Something went wrong when i try to view the Pull Request i have raised
Asked by Sivaram Vishnuvajjhala:

Please find the URL for my Pull Request:

\[REDACTED\]


Answers:
author: Ben
body: Hi Sivaram,

Are you able to clear your cache or try a different browser to see if this loads successfully?

If not, please share the error code that displays below "Something went wrong" so I can look this up in the backend.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Cannot clone my repository using http
Asked by Batyr:

Hi,

I wanted to clone my project to an ubuntu server. I have my app password set up. But for some reason it says it cloned 100% but my folder is empty. Project is not cloned to my ubuntu server. Although it says it is cloned 100% without any problems. Can you please help me in this?

Thanks in advance!


Answers:
author: Ben
body: Hi [@Batyr](/t5/user/viewprofilepage/user-id/4343852)

If the clone command says 100% but the data is not present, could you check the permissions on the root directory and ensure you have write access? I would also suggest attempting to clone to another root directory to determine if the issue is widespread or not.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
potential bug in the rest api
Asked by Pawel Michalski:

I was trying to make api calls to create a comment. I've used rest api, as in

<https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-pullrequests-pull-request-id-comments-post>

when I did a **POST with missing (or empty) path:**

e.g.:

"inline": { "to": 122, "path": "" }

**it made whole PR broken** after such call:

* "Couldn't load activity Try again" - try again never worked ;)
* rest call to **get** all comments ends with 500, always from this point forward:

500 Internal Server Error: \[{"type": "error", "error": {"message": "Something went wrong", "id": "8505d94548074943a03fd7de1601c309"}}\] at


Answers:
author: Theodora Boudale
body: Hi Pawel,

Thank you for reaching out and reporting this.

I was able to reproduce it, I went ahead and created a bug report here:

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

You can add yourself as a watcher (by selecting the **Start watching this issue** link in the bug report) if you'd like to get notified via email on updates. You can also select the link **This affects my team** to indicate you are affected by this issue.

Please note that we don't provide ETAs and bug fixing is implemented as per our policy [here](https://confluence.atlassian.com/support/atlassian-cloud-bug-fix-policy-206865884.html).

In the meantime, I suggest declining the existing PR that broke and creating a new one so that you can add and view comments.

Kind regards,  
Theodora


Tags: api

bitbucket-cloud

bug

cloud
Server prerequisite for BitBucket DataCenter
Asked by JIRA Admin:

Hi All,

We are planning to configure Bitbucket DataCenter in our On-prem and also we are looking to have the physical server for the same. May i know, Server pre-request to have around 500 bictbucket users.


Answers:
author: Zuri Suwru
body: Hey there,

You can find the official documentation for both the requirements and the installation guide for Data Center [here](https://confluence.atlassian.com/bitbucketserver/bitbucket-data-center-requirements-913477100.html).

Alternatively, if your post is about migrating from Server to Data Center, you can refer [here](https://confluence.atlassian.com/bitbucketserver/upgrade-from-bitbucket-server-to-bitbucket-data-center-996641211.html).

Unless you are looking to get an answer to a specific question, these are the best all-rounders, containing all the information you will need.

Best regards,  
Zuri S.


Tags: bitbucket-data-center

bitbucket-server

data-center

server
bitbucket authorization error
Asked by Fatma Ya?anlar:

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

```
Merhaba,Mevcut bir yaz?l?m? Bitbucket'a y?klemeye ?al??t???mda yetkilendirme hatas? al?yorum.Sorun nas?l ??z?lebilir?
```


Answers:
author: Mark C
body: Hi [@Fatma Ya?anlar](/t5/user/viewprofilepage/user-id/5504289),

Thank you for reaching out to the community.  

May I know from which application you're getting the error message?  

Regards,  
Mark C

comments: author: Fatma Ya?anlar
body: Hello, I am participating in this operator via SourceTree.


author: Mark C
body: Hi [@Fatma Ya?anlar](/t5/user/viewprofilepage/user-id/5504289)  

Would you be able to describe what exactly you're trying to run using Sourcetree?  
Are you currently pushing or cloning a repository from [Bitbucket.org](https://bitbucket.org/)?  

Regards,  
Mark
Config Git repository on Fisheye
Asked by Santosh Silla:

Getting below error when trying to config the git repository on Fisheye, can someone help us to find issue?

Error testing connection.  
Error talking to repository:   

git-remote-https: error while loading shared libraries: libnghttp2-httpd24.so.14: cannot open shared object file: No such file or directory  

at com.atlassian.fisheye.git.GitScmConfig.testConnection(GitScmConfig.java:120)  
at com.cenqua.fisheye.RepositoryConfig.testConnection(RepositoryConfig.java:390)  
at com.atlassian.fisheye.spi.admin.impl.DefaultRepositoryAdminService.testConnectionFor(DefaultRepositoryAdminService.java:964)  
at sun.reflect.GeneratedMethodAccessor2299.invoke(Unknown Source)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

Connection failed.


Answers:
author: Dave Theodore [Coyote Creek Consulting]
body: Sounds like the user that your Fisheye process is running as doesn't have the libnghttp2-httpd24.so.14 library in its LD_LIBRARY_PATH. This could be due to a missing package, which should be resolved by installing the package includes this library. If it's installed, you could locate the directory that the shared library is located in and create an environment variable in the Fisheye user's environment adding it to the path. Something like this:

```
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/library 
```

where "/path/to/library" is the directory that contains libnghttp2-httpd24.so.14
"This review has still 1 unresolved comment"
Asked by Christian Schr?der:

From time to time we are facing the issue that a warning is shown when a review should be close. This warning says that there is still one unresolved comment, but all comment in the review are resolved.

Does anyone have this issue as well? Is this a bug, or do I get something wrong?


Answers:
author: Markus Schneider
body: Having the same issue on Crucible 4.7.0 for one code review.

Tried

* unresolve and resolve again
* adding a reply to all comments marked as "needs resolve"
* adding a new revision of all contained files
* different browsers: Firefox 66.0.2, Opera 51

but none of this attempts did help as a workaround.

Looks like a known bug <https://jira.atlassian.com/browse/CRUC-8357>

Looks like i had comments added and then deleted later.


author: Paul Daratha
body: [@Christian Schr?der](/t5/user/viewprofilepage/user-id/769251), did you got any answer or solution suggested?

We face same issue after migration to 4.7.0 release.

comments: author: Christian Schr?der
body: This bug is still not fixes:[CRUC-8357](https://jira.atlassian.com/browse/CRUC-8357)


author: Paul Daratha
body: Thanks for the link and described workaround.

At least we know the reason for this now.