youngmon/atlassian-qna huggingface dataset:
Is it possible to push out a change to all the repos within a project?
Asked by msameer:

Is it possible to push out a change to all the repos within a project? And can we enforce branch protection as well??


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

You could use the following API endpoint:

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

This creates a new commit by uploading a file to a repo. You would need a separate API call per repo, but you could write a script that does that. If the file already exists in the repo, its content will be replaced with the content of the file you are uploading.

If you don't specify a branch, the file will be uploaded to the repo's main branch. You can also specify a branch:

```
curl -X POST https://api.bitbucket.org/2.0/repositories/<workspace-id>/<repo-slug>/src \
--header 'Authorization: Bearer <token>' \
-F File1.json=@File1.json -F branch=feature-branch -F message="some commit message"
```

<br />

You can use branch permissions to restrict who can push or merge PRs to certain branches:

* <https://support.atlassian.com/bitbucket-cloud/docs/use-branch-permissions/>

<br />

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
I am running in the docker pull request limitation with my self hosted runners
Asked by Thomas Einwaller:

getting this error message:  

level=error msg="Not continuing with pull after error: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: ?  
? <https://www.docker.com/increase-rate-limit>"

already tried to configure my Pro Docker account in the pipelines YAML file but it seems to happen before my pipeline file is executed


Answers:
author: Theodora Boudale
body: Hi Thomas,

You may need to also sign in to Docker Hub on the server where the runners are running, to authenticate pull requests.

You can check the following page, it has more details on how to log in if you use Docker Desktop, Docker Engine, etc:

* <https://docs.docker.com/docker-hub/download-rate-limit/#how-do-i-authenticate-pull-requests>

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

pipelines

runner
Docker build failing in bitbucket pipeline
Asked by naorsa:

Hi

I am using in my application the package -\> aws-sdk

when I am importing S3 object from the package, the docker build in bitbucket is falling with the error SIGKILL

and I don't know why its happening, on my local machine the docker build its complete fine


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

I've seen this error occur when the memory available to the docker service is not enough, so that is a possible cause.

To use docker commands in your pipelines build, you define a docker service in your bitbucket-pipelines.yml file. Regular steps have 4096 MB of memory in total and each service has a 1024 MB default memory. If there are no other services in that step, you can increase that up to 3072 MB if you add in your yml file a definition as follows:

```
definitions:
  services:
    docker:
      memory: 2048
```

Our documentation for reference:

* <https://support.atlassian.com/bitbucket-cloud/docs/databases-and-service-containers/>

If a step has [**size: 2x**](https://support.atlassian.com/bitbucket-cloud/docs/step-options/#Size), the build container has 8192 MB memory in total and services can be configured to use up to 7128 MB memory (in total).

Please feel free to let me know if that helps or if you need further assistance.

Kind regards,  
Theodora


author: naorsa
body: Hey Theodora,

thanks you very much, its help and the problem solved !


Tags: unknown-hosting-type
How to use open ID to connect bitbucket pipeline to my GCP projects
Asked by varoon desai:

I am using bitbucket pipeline to run terraform to my GCP accounts but now i don't want to use keys, Instead want to use bitbucket open ID connect to be used to communicate to GCP accounts


Answers:
author: Syahrul
body: G'day, [@varoon desai](/t5/user/viewprofilepage/user-id/5438315)

Welcome to the community!

I suggest reviewing the following documentation on how to use OpenID with GCP:

[Integrate Pipelines with resource servers using OIDC](https://support.atlassian.com/bitbucket-cloud/docs/integrate-pipelines-with-resource-servers-using-oidc/)

Also, have a look at GCP documentation on workload identity:

[Accessing Google cloud resources from an OIDC identity provider](https://cloud.google.com/iam/docs/workload-identity-federation-with-other-clouds)

I hope this helps.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
Facing error 500 when integrating bitbucket with sonarqube.
Asked by Bitbucket Admin:

When i try to integrate bitbucket cloud with sonarqube, i get following error for particular repository.  
**Error returned by Bitbucket Cloud: Something went wrong**

when i try with another workspace it works fine, i am creating oauth consumer with same permissions in both cases.  
Also when i click on check configuration in sonarqube dashboard i get this error in web.log in my sonarqube server.  
2024.02.26 11:53:24 INFO web\[AY3V4jYNxg2B4OffAAcm\]\[o.s.a.c.b.b.BitbucketCloudRestClient\] Bitbucket Cloud API call to \[<https://api.bitbucket.org/2.0/repositories/msbdocs>\] failed with 500 http code. Bitbucket Cloud response content : \[{"type": "error", "error": {"message": "Something went wrong", "id": "8f08a8f068814991b50d4380c000a7be"}}\]  


Answers:
author: Syahrul
body: G'day, [@Bitbucket Admin](/t5/user/viewprofilepage/user-id/5438270)

Could you raise a support ticket with us at our [Support Portal](https://support.atlassian.com/contact/) so we can investigate the issue? We may need to review the affected repository further.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud

sonar

sonarqube
Transfer or migrate entire workspace to a new workspace
Asked by Joel Hynoski:

Hey all,

We're in the situation of needing to extricate our bitbucket repositories --- our entire workspace --- from a workspace that was set up when our company and another were intertwined and shared some resources. We are actively developing on the workspace and would ideally like zero downtime as we change Atlassian accounts/Owners/whatever we need to do.

The current members of the workspace will stay the same (no one will be deleted) after migration, it's basically changing the name of the workspace and ensuring that there are none of the other company's folks still in there.

As an admin there, I can see my company's workspace and repositories but not the other company's, but I have been told they are there and it's being used. :shrug:

Any tips on how to do this with the minimum of pain?

Thanks!


Answers:
author: Ben
body: Hi [@Joel](/t5/user/viewprofilepage/user-id/908355) !

I have noticed that you belong to a Premium-tier company workspace, which entitles you to Premium support from our support team.

I have raised a ticket on your behalf, please check your email inbox for further correspondence with this query.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
I want to use a step inside the stage with artifacts download to be false
Asked by SHUBHAM SINGH:

In the ci/cd pipeline i want to use a step inside the stage with artifacts download to be false for faster performance and good speed of deployment but when i upload the code it says that the code have some errors and use bitbucket pipeline code validator and when i upload the same code at the validator it says everything is ok


Answers:
author: Syahrul
body: G'day, [@SHUBHAM SINGH](/t5/user/viewprofilepage/user-id/5434707)

Welcome to the community!

I need to review your YAML to understand why it's invalid. So, if you can filter it out and share it here, I'd be happy to check it. Otherwise you can create a support ticket with us on the [Support portal](https://support.atlassian.com/contact/) so our engineer can assist you.

Also, please check our example [here](https://bitbucket.org/blog/skipping-artifact-downloads) to review how to set cache download to false in your YAML and compare it with your YAML.

Regards,  
Syahrul


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Pipeline can not find data.csv
Asked by pascal_schroeer:

Hi,  
I often use pipeline to compile my LaTeX files automatically.  
![Bildschirmfoto 2024-02-25 um 06.45.32.png](/t5/image/serverpage/image-id/308503i7A2E1BF6E8999961/image-size/large?v=v2&px=999 "Bildschirmfoto 2024-02-25 um 06.45.32.png")  
`In this case, I have a LaTeX file (Istallation-Plan.tex = root) what is compiling without any doubts until I ask to include the file data.csv.`  
`When I try to include this, I get the following error Message:`  
> ! Package pgfplots Error: Could not read table file 'data.csv' in 'search path=
> .'. In case you intended to provide inline data: maybe TeX screwed up your end-  
of-lines? Try `row sep=crcr' and terminate your lines with `\\' (refer to the p  
gfplotstable manual for details).  
`As you can see in the picture, data.csv IS within the normal LaTeX directory. So why can it not be found?`  
`And what means:`
Could not read table file 'data.csv' in 'search path=  
.'.  
The search path .'. means probably the root path or?


Answers:
author: pascal_schroeer
body: I solved the problem by myself... I just had to add

```
 - cd LaTeX
```

To change the folder, where LaTeX is performed...


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

latex
Unable to leave workspace
Asked by Amanpreet:

Hi Team

From All workspace screen I am trying to leave workspace starting with **ra** , getting popup message **You have left this workspace.** But still workspace visible in my list, not sure if it is abondoned or not. I even tried page reload and relogin to acount but workspace still exists. Seems like there is some technical issue/bug, can you guys please get it sorted.


Answers:
author: Ben
body: Hi Amanpreet,

It appears the workspace membership was stale, so you were essentially stuck still as a member of that workspace. I've just refreshed the workspace membership in the backend and can see that you are no longer a member of that workspace.

Please perform a browser cache refresh and then attempt to load your workspace again - you should no longer see that stale workspace.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
I am making bitbucket api more than 1000 times , I am getting resource exhausted exception
Asked by Ankit Gupta:

I am getting 429 Rate limit for this resource has been exceeded, can anyone help me to understand how I can increase this rate limit . Earlier I have created clients using ussername/password and now I tried with workspace access token but this issue still persists. I thought of downloading the whole directory in memory to avoid doing get calls but it seems there is no such api to download the content recursively from a dirrectory though we have same option from UI.


Answers:
author: Saxea _Flowie_
body: Hi [@Ankit Gupta](/t5/user/viewprofilepage/user-id/5433628)

This has been reported [here](https://jira.atlassian.com/browse/BCLOUD-17723), and a possible workaround is to use repository/workspace tokens.

comments: author: Ben
body: Hi [@Ankit Gupta](/t5/user/viewprofilepage/user-id/5433628)

While the rate limit is not able to be increased (see above comment listing the [feature request](https://jira.atlassian.com/browse/BCLOUD-17723)), each workspace token has a 1,000 request limit so you can create multiple workspace tokens and split the requests across these. Say you needed to send 3,000 requests per hour for example, you could send 1,000 using WorkspaceTokenA, another 1,000 using WorkspaceTokenB and another 1,000 using WorkspaceTokenC.

As for recursive file downloading, this is more a limitation of cURL/wGet, we do have file downloading capabilities in our API so I will share this documentation as well as some external documentation that provides some assistance with working around cURL/wGet limitations:

* <https://confluence.atlassian.com/bbkb/how-to-download-repositories-using-the-api-1188780893.html>
* <https://rakeshjain-devops.medium.com/download-files-and-directories-from-web-using-curl-and-wget-9217bc2e34c9>

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


author: Ankit Gupta
body: Thanks for the update [@Ben](/t5/user/viewprofilepage/user-id/4537226) , can we use workspace access token to download a directory as zip , or we need to use username:password only, as I tried the api to get as zip using workspace access token is not working but with username:password I was able to do so .


Tags: bitbucket-cloud

cloud
How do I open a ticket to get assistance?
Asked by Sophonie Tchoua:

I am experiencing and issue with Bitbucket cloud pipeline and I would like to know how to open a ticket to get assistance. **I have a standard membership** but I don't see where I can go to open a ticket to get assistance.

**I have asked my question 3days ago** at the following url: <https://community.atlassian.com/t5/Bitbucket-questions/How-can-I-locate-my-remote-script-sh-on-the-remote-server-via/qaq-p/2615347#M101800> and I haven't gotten a response.

I also opened a ticket in the past: [Issues with pipeline configuration to build and deploy changes to our FTP server (atlassian.com)](https://support.atlassian.com/requests/BBS-201606?src=email) where I got some assistance, and I am able to replicate the same process?

Sophonie.


Answers:
author: Kseniia Trushnikova
body: Hey [@Sophonie Tchoua](/t5/user/viewprofilepage/user-id/5197998),

To contact Atlassian support directly, please create a ticket here: <https://support.atlassian.com/contact/>.

The community is where Atlassian users like you share their experiences and help each other solve issues they face.

It may take some time to receive responses. Unfortunately, some posts here may remain unanswered if there are no users who have already encountered the issue described in the post.


Tags: bitbucket-cloud

cloud
how to inherance or share export VARS to other steps in my bitbucket-pipeline.yaml
Asked by Andr?s Carrillo:

how to inherance or share export VARS to other steps in my bitbucket-pipeline.yaml without use artifacts because I need to share confidencial values as AWS credentials among other values.  

----------------------------- bitbucket snipped ----------------------------------  
pipelines:  
custom:  
database-img:  
- variables:  
- name: DOCKER_FILE  
allowed-values:  
- DockerfileMongo  
- DockerfileMysql  
default: DockerfileMongo  
- name: ENV  
allowed-values:  
- POC  
- DEV  
- TEST  
- PRD  
default: POC  
- step: \*set-env  
- step: \*ecr-login  
- step: \*build-push-image  

I need set my AWS credentials in set-env step and share those values to the others steps ecr-login and build-push-image  

but I don't want to share those values in an artifact  

I tried use inherance but I don't exactly how to implement it.  

Thanks in advance for your suggestions or advices  


Answers:
author: Andr?s Carrillo
body: Hi Mark, thanks a lot for your suggestion well, what I did to resolve this situation was to print the definitions in the set_env.sh file like this:  

step: \&set-env  
name: setting up environment  
echo "export AWS_ACCESS_KEY_ID=\\${"${ENV}"_AWS_ACCESS_KEY_ID}" \>\> set_env.sh  
\*  
\*  
\*  
artifacts:  
- set_env.sh  

results in set_env.sh:  

export AWS_ACCESS_KEY_ID=${DEV_AWS_ACCESS_KEY} --\> this one already is defined in my repository variables.  

step: \&login-aws  
name: login to aws  
script: \|  
source set.env.sh  

In this way I pass the values that the script requires without showing them in the set-env.sh file.


author: Mark C
body: Hi [@Andr?s Carrillo](/t5/user/viewprofilepage/user-id/5437355),

Welcome to the community.

Unfortunately, Pipelines doesn't have the ability to share/export variables from one step to another at the moment.

We do have an existing feature request for it that can be located through this link. - <https://jira.atlassian.com/browse/BCLOUD-20294>.  
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, according to our policy on [implementing new features](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).

Right now, you can use pre-defined secured variables either from your [repository or workspace level](https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/).

Let me know if you have any questions.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
FISHEYE_HOME size
Asked by Neil Nelson:

This weekend I upgraded our FishEye/Crucible from 3.3.3 to 3.5.4. Just to be safe, I first ran "tar cjvf [2014_10_13-fecru-3.3.3.tar.bz](http://2014_10_13-fecru-3.3.3.tar.bz) FISHEYE_INST". This operation took approximately 75 minutes and created a tar-ball that is 12Gb in size. I was quite surprised to see such a large *compressed* file. Is this normal? Is there some operation I should be regularly running to trim our FISHEYE_HOME directory?


Answers:
author: Neil Nelson
body: By "original size" I assume mean the size of the directory, before tar'ing and compressing, right? "du -sh FISHEYE_INST" reports 23Gb, so yes, it's pretty large. If that's normal, then I don't have a problem with it; I just wanted to make sure that there isn't some normal maintenance which I've been inadvertantly skipping.


author: gustavo_refosco
body: Hi Neil,

The FISHEYE_INST directory holds all the data related to your repository cache, so depending on the size of your repositories, it may consume a big amount of space. Could you please confirm the original size of this directory?


Tags: fisheye-crucible-administration
Why mail server cannot connect to SSL/TLS SMTP server
Asked by Gaojing Bai:

When I use not SSL/TLS connect to SMPT(port is 25) Server is OK,but when I use SSL/TLS(port is 465) cannot successful send mail,It's bug?


Answers:
author: davelahn
body: Hi Gaojing,

As per [this doucment](https://confluence.atlassian.com/display/FISHEYE/Configuring+SMTP), for the port, you will want to specify either 25 or 587. This is because the initial connection to the mail server is not done over SSL. If you have `Use SSL/TLS` selected, an SSL connection will be negotiated.

Best regards,

Dave


Tags: fisheye-crucible-administration
Problem trying to review change in Fisheye/Crucible - Server Error Error 2 URL: /json/fe/loadChangesetPage.do
Asked by Neal Culiner:

An error has occurred {#toc-hId-1679892322}
-------------------------------------------

Error  
Server Error  
Error 2  
URL: /json/fe/[loadChangesetPage.do](http://loadChangesetPage.do)

A javax.servlet.ServletException was encountered
java.lang.StackOverflowError  
You are running release CR3.5.4 FE3.5.4 (20140917115234 2014-09-17), please report your release number when reporting bugs.  
Got a suggestion or an issue?  
Discuss it in [our forums](http://forums.atlassian.com/) or visit our [support website](http://support.atlassian.com/) for other options.

How do I resolve this? Seen it for many versions, I'm using all of the latest releases of JIRA, Confluence, Fisheye - on Windows Server 2012 R2, Google Chrome...


Answers:
author: Neal Culiner
body: I've been using the manual zip file install for years so I tried the Windows x64 install, got it all setup again, same exact problem. Now in the new setup I have no idea how to adjust memory params.


author: Neal Culiner
body: I'm using SVN


author: gustavo_refosco
body: Hi Neal,

I believe you may be facing one of the following issues:

* <https://jira.atlassian.com/browse/FE-5320> - At first, as you report this while trying to review a change, I'm suspecting on this one. It happens when you have a very long string in a file. So far I observed this for Git and for Mercurial repositories. Please check if this could be your case, for which the workaround would be to break the string.
* <https://confluence.atlassian.com/display/FISHKB/SVN+Incremental+Indexing+ERROR+-+StackOverflowError> - This would happen during indexing, so I'm not sure if this is your issue, but in case the first one doesn't match your case, you could check this one.

Regards,

Gustavo Refosco

comments: author: Neal Culiner
body: How do I add FISHEYE_OPTS=-Xss1024k in the wrapper.config format?
Can you get notifications based on a search in Fisheye?
Asked by Adam White:

One of our engineers wanted to know if it was possible to get notifications if code was changed for any folder with that matched the term "X". I mentioned that he could just find any folders with the term but there might be times where a new folder is made without his knowledge.


Answers:
author: lpater
body: Hi Adam.

Currently it isn't possible to get notifications for search results in FishEye. There's a feature request related to this here: <https://jira.atlassian.com/browse/FE-4958> - please vote for it and describe what functionality you'd like to see.

Depending on the exact functionality required you could consider a solution that polls a REST resource periodically to search for interesting new commits (like [https://fisheye1.atlassian.com/rest-service-fe/search-v1/queryAsRows/firebird.json?query=select%20revisions%20from%20dir%20%22/%22%20where%20path%20like%20%22\*\*/test/\*\*%22%20order%20by%20date%20desc%20group%20by%20changeset%20return%20path,%20revision,%20author,%20date,%20csid](https://fisheye1.atlassian.com/rest-service-fe/search-v1/queryAsRows/firebird.json?query=select%20revisions%20from%20dir%20%22/%22%20where%20path%20like%20%22**/test/**%22%20order%20by%20date%20desc%20group%20by%20changeset%20return%20path,%20revision,%20author,%20date,%20csid) to search for new files in a 'test' directory in the selected repository), and fire notifications based on that.

comments: author: Adam White
body: Thanks!
fisheye avatar slow loading
Asked by Ryan Goodwin:

Does anyone else have issues with fisheye avatars loading very slowly?

We have issues with avatars/profile pictures taking a while to load, which slows down operations across the application. Something as simple as creating a review is now extremely time consuming as all the avatars for the associated users on the project have to finish loading before the review workflow continues. For large teams, this makes review creation almost impossible.

Running version 3.5.3. Did not have this problem before upgrading from 3.0.1 a couple weeks ago.


Answers:
author: lpater
body: Hi Ryan.

I haven't been able to find any known issues about slow avatar loading at currently.

You might be best off raising a support ticket. Try to capture a few stack traces during the avatar request to help us diagnose further.


author: Ryan Goodwin
body: I've exported a har of the whole page loads. All profile pics with default avatars take 14-16s to load. The one custom profile pic takes ms to load. Any suggestions besides opening a support ticket?


author: Ryan Goodwin
body: Here is a custom profile picture loading on the exact same review page:

Screen Shot 2014-10-09 at 10.21.08 AM.png  
[](https://community.atlassian.com/t5/Fisheye-Crucible-questions/fisheye-avatar-slow-loading/qaq-p/84709?attachment-id=12595){#link_115bd4409faa0d}  
[](/tnckb94959/attachments/tnckb94959/fisheye-crucible-questions/1109/1/Screen%20Shot%202014-10-09%20at%2010.21.08%20AM.png){#display_115bd4409faa0d_0}


author: Ryan Goodwin
body: By slow loading, I mean 10+ seconds. Everything else seems to be happening fast, no noticeable bottlenecks. This is a standard charlie avatar. Not a custom profile pic. Here is some timing information for loading up a review page:

\<baseurl\>/avatar/\<username\>?s=24

Screen Shot 2014-10-09 at 10.17.29 AM.png  
[](https://community.atlassian.com/t5/Fisheye-Crucible-questions/fisheye-avatar-slow-loading/qaq-p/84709?attachment-id=12998){#link_115bd4514fd715}  
[](/tnckb94959/attachments/tnckb94959/fisheye-crucible-questions/1108/1/Screen%20Shot%202014-10-09%20at%2010.17.29%20AM.png){#display_115bd4514fd715_0}