youngmon/atlassian-qna huggingface dataset:
Is there a way to exceed the API requests limit for repository data?
Asked by Mattice Struyve:

Hello

I am currently working on creating a secret scanning script for Bitbucket Cloud.  
For this I am using the Bitbucket API to access the repository data .  
The problem is that the API accepts a maximum of 1000 requests and I easily exceed this limit.  
I have the following questions:

* Does this also apply to the premium version of Bitbucket Cloud?
* What would be an alternative solution to this problem?

Thanks in advance for your answer.  
MS


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

The rate limits for authenticated calls are measured against the user ID of the authenticated user in the API calls:

* <https://support.atlassian.com/bitbucket-cloud/docs/api-request-limits/>

In Bitbucket Cloud, these limits apply to all users, regardless of the billing plan of their workspace(s).

As Nic mentioned, the solution is to make fewer calls; the limits cannot be raised.

Kind regards,  
Theodora


author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

Premium Bitbucket has a higher limit, but it's still limited. The solution is for you to make fewer calls from your code.

comments: author: Mattice Struyve
body: Thank you for your answer!

Do you have any idea what the exact limit of the premium version is? I can't really find anything on this.


author: Nic Brough -Adaptavist-
body: I'm sorry, faulty memory - they used to be different, but standard limits have now been raised to the same level as premium, so there is no difference any more.

See what [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) wrote - that's exactly what you need to read!


Tags: api

bitbucket-cloud

cloud

rest-api
I want to Logout my Bitbucket Account as my Laptop is strolen
Asked by Prateek:

I really need help to logout all instances of my account as my laptop is stolen


Answers:
author: Mayur Jadhav
body: Hello [@Prateek Gupta](/t5/user/viewprofilepage/user-id/5101237) ,

Welcome to the Atlassian Community!!

You can follow this below Atlassian official document to logout from all devices and let me know if it helps.

<https://support.atlassian.com/atlassian-account/docs/manage-recently-used-devices-for-your-atlassian-account/>

Regards,  
Mayur

comments: author: Theodora Boudale
body: Hi [@Prateek Gupta](/t5/user/viewprofilepage/user-id/5101237),

I just wanted to add to Mayur's reply the following:

1. I would suggest resetting your Atlassian account password, just in case the password was saved in the browser's password manager in the stolen laptop. You can request a password reset email via this link: <https://id.atlassian.com/login/resetpassword>  

2. If you had app passwords generated for your account that you were using on that laptop, you can revoke them via this page: <https://bitbucket.org/account/settings/app-passwords/>  

3. In case you had any SSH keys set up on this laptop for your account, you can remove them from your account via this page <https://bitbucket.org/account/settings/ssh-keys/> (otherwise, whoever has the laptop can still use them to clone/pull/push via SSH to repos your account has access to). Similarly, if you had set up in that laptop Access keys, remove the keys from the repo's **Repository settings** \> **Access keys**.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Unable to merge repository
Asked by SysAdmin:

Hi,

I want to merge a branch to another branch. But I can not do.

No error message only a red icon with an exclamation mark.

But a the top of the web page, I have another yellow icon with the following message:

### Alerts {#toc-hId-2004420926}

* **Base URL mismatch** You are accessing Bitbucket from a URL that does not match the configured base URL.

  [Change it in Server Settings](https://dit-git.unifr.ch/admin/server-settings)

I need help

Regards

Olivier


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@SysAdmin](/t5/user/viewprofilepage/user-id/5154659) and welcome,

alert is saying that you're trying to perform merge using an invalid BASE URL. Please verify that you are using the correct Bitbucket URL.

Fabio


Tags: bitbucket-server

server
Copy files from repo to nodemodules of ci pipeline
Asked by bb.admin:

I am trying to copy @jsplumbtoolkit @jsplumb libraries into node modules folder of ci pipeline on 2nd step and pass that node_modules to third step for angular build. But not able to.

please suggest changes on step two.

Angular pipeline :-

image: node:16

pipelines:  
branches:  
ci-cd-test-branch:

- step:  
name: Installation  
caches:  
- node  
script:  
- npm install  
artifacts:  
- node_modules/\*\* # Save modules for next steps

- step:  
name: copy jsplumb to node modules artifact  
script:  
- **cp -r @jsplumbtoolkit @jsplumb node_modules/**

- step:  
name: Build  
script:  
- npm run build:prod  
artifacts:  
- dist/\*\* # Save build for next steps


Answers:
author: Theodora Boudale
body: Hi [@bb.admin](/t5/user/viewprofilepage/user-id/5136231)!

Since node_modules/\*\* is defined as an artifact in the first step only, only the contents of node_modules in the first step will be saved.

You have two options here:

1. Either use the same **artifacts** definition in the second step as well
2. Or combine the two steps into one, as Erez suggested

The second option might make more sense:

For every step in your bitbucket-pipelines.yml file, a Docker container starts based on the image you have specified, the Bitbucket repo is cloned in that container, then the commands of that step's script are executed, and eventually, the container gets destroyed. You may not want to use a separate step, and thus spin up a new container, only to execute a copy command.

If you have any questions, please feel free to let us know!

Kind regards,  
Theodora


author: Erez Maadani
body: Hey [@bb.admin](/t5/user/viewprofilepage/user-id/5136231)

Try moving the copy to the first step.

Hope that helps


Tags: bitbucket-cloud

bitbucket-pipelines
Git compatibility with v7.17.15
Asked by ADC UK:

I can't find any specific release notes for LTS v7.17.15 released in Feb.  
The 7.17 general support page on identifies v2.33.\* of Git as the latest supported version - is that still the case?

Thanks  
Mike


Answers:
author: Victor Menes
body: Hey Mike,

Yeah, you are correct! [Bitbucket Release notes for 7.17](https://confluence.atlassian.com/bitbucketserver0717/supported-platforms-1087536587.html) shows that Git version 2.33.x is the latest version supported for that version.

However, I would like to mention that Bitbucket 7.17 is not the [current LTS version](https://confluence.atlassian.com/bitbucketserver/release-notes-872139866.html). It would be Bitbucket 7.21 and you could check its release notes [here](https://confluence.atlassian.com/bitbucketserver/bitbucket-data-center-and-server-7-21-release-notes-1115129015.html) and [supported platforms here](https://confluence.atlassian.com/bitbucketserver0721/supported-platforms-1115666749.html) (Git version supported is until 2.39.x (from 7.21.9)

I hope this was helpful and answered your doubts :)

comments: author: ADC UK
body: Thanks Victor - sorry one more question.  
Can you upgrade directly from 7.17 to 7.21??

Thanks  
Mike


author: Victor Menes
body: Hey Mike, no problem at all!

Yeah, you could, I just wanna point out that you might be migrating from ElasticSearch to OpenSearch on the new 7.21 version and I would like to highlight below:

\* If you are using the bundled search, it will be changed to OpenSearch and it might took a while to reindex

\* If you are using a remote search, you don't have to worry. You can keep Elastic on a supported version.

\* Make sure to checkout all the [supported platforms for 7.21](https://confluence.atlassian.com/bitbucketserver0721/supported-platforms-1115666749.html) and validate that everything is on the supported version

\* Also, if you are using a custom Java version, on Bitbucket 7.21 you will need to use our Java version.

Also, not sure if you are running you instances on Linux or Windows, but Atlassian has announced the [end of support for Windows](https://confluence.atlassian.com/bitbucketserver/end-of-life-for-bitbucket-server-hosting-on-windows-1103070138.html)

Related to the upgrade itself, you can find more information - [Bitbucket Server Upgrade Guide](https://confluence.atlassian.com/bitbucketserver/bitbucket-server-upgrade-guide-776640551.html)


Tags: bitbucket-server

server
Creating a template for repository ?
Asked by Ritesh Thakur:

Does Bitbucket have native support that enables users to predefine template for a repository ? This is to make sure that anytime a repository is created by a user, it predefined files and package structure ?


Answers:
author: Jens Schumacher - Released_so
body: Hi [@Ritesh Thakur](/t5/user/viewprofilepage/user-id/5154056)

Welcome to the Atlassian Community!

Unfortunately Bitbucket Cloud does not currently support predefined templates for repositories.

You can find and vote for an open feature request here: <https://jira.atlassian.com/browse/BCLOUD-18603>

There is also [an app available for Bitbucket Server](https://marketplace.atlassian.com/apps/1213038/repository-templates-for-bitbucket?hosting=server&tab=overview) that adds support for templates, but unfortunately it's not available for Cloud.

Sorry I don't have better news for you.

Cheers,  
Jens

[released.so](https://released.so)


Tags: bitbucket-cloud

cloud
is node 18.14.2 avaialble in pipelines?
Asked by Manuel Panizzo:

I've seen that node:18.14.2 is available in docker but I get this error when trying yo use it in my pipelines.

rpc error: code = NotFound desc = failed to pull and unpack image "docker.io/library/node:18.14.2": failed to resolve reference "docker.io/library/node:18.14.2": docker.io/library/node:18.14.2: not found.  

In my pipeline.yml file I'm referencing the image this way:  

image: node:18.14.2


Answers:
author: Patrik S
body: Hello [@Manuel Panizzo](/t5/user/viewprofilepage/user-id/5154030) ,

Welcome to Atlassian Community!

Essentially, you should be able to use any public image available in DockerHub and for private images, you can provide the credentials for authentication.

I just tried to run a pipeline using the following YML and it was executed successfully :

```
image: node:18.14.2
pipelines:
  default:
      - step:
          name: Test node
          script:
            - node --version
```

Could you please confirm if the syntax you used is similar to the above? If yes, then I would say it was a temporary glitch either on pipelines or DockerHub, and you can try again to check if the issue is still reproducible. If the same error happens when running the build again, please share your full YML file here so we can have a deeper look.

Thank you, [@Manuel Panizzo](/t5/user/viewprofilepage/user-id/5154030) !

Patrik S


Tags: bitbucket-cloud

cloud
How do I resolve "404 file not found" on some source files in a repo?
Asked by Bob Rzadzki:

In Bitbucket Server, when I click on a file in a repository, about 50% of the time I get a 404 error -- the source file isn't found. Some files display just fine, but others -- mainly project descriptors, but also some run-of-the-mill .cs files -- never load, always displaying the error.

I've given the service account Bitbucket runs as "Full Control" and every other permission over Bitbucket's home directory. No change.

How can I resolve this?


Answers:
author: Bob Rzadzki
body: Still waiting on any support here.


author: Bob Rzadzki
body: My product is broken. Any support here?


Tags: bitbucket-server

server
artifact not created
Asked by Daniel Verman:

hi i have a small pipeline:  
on merging a PR to master 1)copy branch files into some tmp folder/create it as an artifact and 2)upload folder\*files into s3 bucket.

<br />

<br />

i saw the files in the folder /tmp/artifact but no artifact was create and therfore its failed on deploy step, any ideas?  

<br />

pipelines:  
branches:  
master:  
- step:  
name: Build Artifact  
script:  
- pwd  
- ls  
- mkdir -p /tmp/artifact  
- cp -r \* /tmp/artifact -v  
- ls -l /tmp/artifact  

artifacts:  
- '/tmp/artifact/\*\*'

<br />

- step:  
name: Deploy to S3  
deployment: production  
script:  
- pipe: atlassian/aws-s3-deploy:0.3.8  
variables:  
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID  
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY  
AWS_DEFAULT_REGION: 'us-east-1'  
S3_BUCKET: 'test_bucket' #test  
LOCAL_PATH: /tmp/artifact  

<br />

<br />


Answers:
author: Patrik S
body: Hey Daniel,

Welcome to Atlassian Community!

According to the [Pipelines artifacts documentation](https://support.atlassian.com/bitbucket-cloud/docs/use-artifacts-in-steps/) :
> Files that are in the BITBUCKET_CLONE_DIR at the end of a step can be configured as artifacts. The BITBUCKET_CLONE_DIR is the directory in which the repository was initially cloned.

This means that files created outside the BITBUCKET_CLONE_DIR will not be uploaded as artifacts.

The solution, in this case, would be to create your artifact folder inside the BITBUCKET_CLONE_DIR, move the required files to that folder, and specify that folder as an artifact in your step, as in the example below :

```
pipelines:
 branches:
  master:
   - step:
     name: Build Artifact
     script:
      - mkdir -p my_artifacts
      - cp -r * my_artifacts -v
    artifacts:
     - 'my_artifacts/**'
```

Artifact paths are already relative to the BITBUCKET_CLONE_DIR, this is the reason in the example we haven't specified the full path.

Hope that helps! Let me know in case you have any questions.

Thank you, [@Daniel Verman](/t5/user/viewprofilepage/user-id/5153807) !

Patrik S


Tags: bitbucket-cloud

cloud
aws-code-deploy: S3 location and command
Asked by AZZ:

Hello,

a few questions

how can I specify a location (path) on a bucket where I'd like to deploy the artifacts?

As of right now, it appears that S3_BUCKET only takes the bucket name e.g. s3://mybucket

"Command":

is there a way to combine both actions ( "upload" and "deploy") without invoking the pipe twice?

Thank you.

ref: <https://bitbucket.org/atlassian/aws-code-deploy/src/master/README.md>


Answers:
author: Oleksandr Kyrdan
body: Hi [@AZZ](/t5/user/viewprofilepage/user-id/5060131)

Thank you for your question!

1) there is an example in the Readme for your case:

```
script:  - pipe: atlassian/aws-code-deploy:1.1.1    variables:      AWS_DEFAULT_REGION: 'ap-southeast-2'      AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID      AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY      COMMAND: 'deploy'      APPLICATION_NAME: 'lambda-application'      DEPLOYMENT_GROUP: 'my-deployment-group'      WAIT: 'true'      S3_BUCKET: 'my-bucket'      VERSION_LABEL: 'lambda-app-1.0.0'      BUNDLE_TYPE: 'YAML'
```

2) the pipe supports \`upload\` **or** \`deploy\` mode in the current implementation.  

Best regards,  
Oleksandr Kyrdan

comments: author: AZZ
body: [@Oleksandr Kyrdan](/t5/user/viewprofilepage/user-id/2885705),

Thank you for the reply.

If I understood you correctly:

1. there is no way to specify a path on the bucket? I was hoping to upload to a specific location e.g. "mybucket/deployments".

2. There is no option to upload and deploy in the same pipe call?


author: Oleksandr Kyrdan
body: [@AZZ](/t5/user/viewprofilepage/user-id/5060131)

1. You could provide the FOLDER variable [for the pipe to specify path on you S3 bucket](https://bitbucket.org/atlassian/aws-code-deploy/src/a191478fa493e985d6ef823f90d619e1eec9f834/pipe/pipe.py?at=master#lines-65) according to the Readme documentation.
> **FOLDER** If the deployable artifact is in any folder inside bucket, specify the folder name

2. You should choose only one of the option or upload or deploy at once.


author: AZZ
body: worked like a charm. Thank you [@Oleksandr Kyrdan](/t5/user/viewprofilepage/user-id/2885705)


Tags: aws

bitbucket-cloud

cloud
selenium python pipeline
Asked by nada.zitouni:

hello i'am trying to run pipeline which run selenium python tests:

the yaml :

pipelines:  
default:  
- step:  
name: tests  
image: python:3.7  
script:  
- python --version  
- pip3 install selenium  
- pip3 install webdriver_manager  
- python3.7 Tests/Test1.py

there is some issue with webdriver execution does anyone have idea please

error :

**`selenium.common.exceptions.WebDriverException: Message: Service /root/.wdm/drivers/chromedriver/linux64/110.0.5481/chromedriver unexpectedly exited. Status code was: 127`**


Answers:
author: Patrik S
body: Hello [@nada.zitouni](/t5/user/viewprofilepage/user-id/4941956) ,

Thank you for reaching out to Atlassian Community.

After doing a research about this particular error, I found the following StackOverflow thread where they mention that selenium might require some additional libraries to be installed in the container :

* <https://stackoverflow.com/questions/49323099/webdriverexception-message-service-chromedriver-unexpectedly-exited-status-co>

Could you please try installing the packages mentioned in that documentation as part of your script, and let us know how it goes? I would suggest[testing locally with docker](https://confluence.atlassian.com/bbkb/debug-pipelines-locally-with-docker-1167698072.html) until you get the issue fixed and only then moving the changes to your repository, so this way you don't spend your build minutes.

I've also found an article that has step-by-step instructions on how to use selenium on Bitbucket Pipelines using the services feature. You're also welcome to take a look and check if this tutorial helps with your use case:

* <https://jeroenpeters.dev/blog/run-your-selenium-tests-in-the-cloud-with-bitbucket-pipelines/>

Thank you, [@nada.zitouni](/t5/user/viewprofilepage/user-id/4941956) !

Patrik S


Tags: bitbucket-cloud

cloud
SSH keys to connect to Bitbucket repositories
Asked by Rudra Narayan Dash:

after genereting ssh key RSA2 algo and added it in bitbucket. still i am getting   
SSH Public Key - No supported authentication methods available (server sent public key)  


Answers:
author: Patrik S
body: Hello [@Rudra Narayan Dash](/t5/user/viewprofilepage/user-id/5153775) ,

Welcome to Atlassian Community!

The currently supported SSH key formats in Bitbucket Cloud are Ed25519, ECDSA, RSA, and DSA.

In order for us to investigate further, could you please share the output of the following command after running it on your system's terminal?

```
ssh -tvvv git@bitbucket.org
```

This is to check the SSH connection with Bitbucket and understand what key is being used.

Also, are you facing this error running a git command directly in the terminal or through a GUI like Sourcetree?

Let me know in case you have any questions.

Thank you, [@Rudra Narayan Dash](/t5/user/viewprofilepage/user-id/5153775) !

Patrik S
Issues with Preview for SketchUp
Asked by Dan Thomas:

Up until recently, SourceTree has been showing preview images for SketchUp files.

![image.png](/t5/image/serverpage/image-id/30473i2F30D0C5D51A1387/image-size/large?v=v2&px=999 "image.png")

But for one SketchUp file, it doesn't show preview images.

![image.png](/t5/image/serverpage/image-id/30475i3A735C0C3C77CE32/image-size/large?v=v2&px=999 "image.png")

Anyone know why this might happen, and better yet, how to fix it? I'm wondering if it has something to do with how I save the file, but I can't figure it out.

I really like the preview images, because I can see the changes I've made, at a glance.

Thanks in advance.


Answers:
author: Manju
body: Set an appropriate size limit for binary diff size and you should be able to see the diff. This option is in Preferences Window - Diff tab.

![](blob:https://community.atlassian.com/60743e3c-d761-4a8a-b4db-1a3e722fdde9)

comments: author: Dan Thomas
body: Thanks! I'm glad it was simple, and I'm glad I asked. :)


Tags: preview
Where is the current Sparkle feed for Sourcetree?
Asked by tjluoma:

The current version of the app:

Sourcetree.app:

CFBundleShortVersionString: 2.7.6

CFBundleVersion: 177

has references to this Sparkle Appcast / RSS Feed:

<https://www.sourcetreeapp.com/update/SparkleAppcast.xml>

but if you look at it, you'll notice that nothing has been added to that feed since \*\*25 Oct 2016\*\* (version 2.3.2).

Version 2.3.2 _will_ offer to update itself to 2.7.6 if you let it check for updates, but I'm curious what Sparkle / Appcast URL it is using, and why the old one is no longer updated.

Does anyone know the current, correct URL for Sourcetree updates?

TjL

ps - the reason I ask is that I maintain a set of scripts designed to let Mac users automatically update their apps, and it works best when I can use the Sparkle Appcast URLs, rather than resorting to scraping HTML off <https://www.sourcetreeapp.com> or some such other alternative. One big reason is the ability to check cryptographic signatures via the Sparkle feeds. You can't get that scraping HTML.

You can find the scripts at <https://github.com/tjluoma/di> if you're interested


Answers:
author: Manju
body: Hi,

We are in the process of changing our hosting infrastructure for all artifacts with a beta roll out very soon. Please stay tuned for details coming out shortly. You can also sign up for an early access build and provide your feedback on improvements - [Sign up now](https://groups.google.com/d/forum/atlassian-sourcetree-beta#)

Thanks,  
Manjunath  
Sourcetree Mac Developer

comments: author: tjluoma
body: Since... 2016 ;-?

(I've signed up for the beta.)
Why "Log Selected..." not works with files in folders with special characters?
Asked by eppz:

If I click **"Log Selected..."** on a file that is contained in a folder named *"\[SomeFolderName\]"*, then I get this message:

![Screen Shot 2018-08-24 at 12.38.44.png](/t5/image/serverpage/image-id/30395i5D6B4B8D566737FA/image-size/large?v=v2&px=999 "Screen Shot 2018-08-24 at 12.38.44.png")

On files outside this folder I can use the feature just fine. Also, when I use the *git log* command directly, it also just works fine. This seems a Sourcetree only issue.

**Can I disable this security check thingy somehow?**


Answers:
author: eppz
body: Thanks for getting back. Indeed, **it was the "\[" character in the folder name**, that prevented us to lookup logs for any file within. We ended up renaming the folder.

(anyway, actually the files in their new location have lost links to their original counterparts, so we still can't lookup logs)


author: bgannin
body: Hi Borb?s,

The full URL for that file path potentially contains one or more incompatible characters per this [Git documentation](https://mirrors.edge.kernel.org/pub/software/scm/git/docs/git-check-ref-format.html). We actively guard against to prevent possible exploits and don't provide an option to override it. I will pass that feedback along to the Security folks to see what they think though.

Brian Ganninger  
Senior Mac Developer, Sourcetree


Tags: git

security
Branching view for individual file?
Asked by Tonya Murray:

The Log/History view of the branches is very useful. Is there any way to display something similar for an individual file? I'd like to pick a file and very quickly figure out which commits in which branches modified it.


Answers:
author: Tonya Murray
body: I can see the commits from doing git log \<file\> on the terminal, but it doesn't show which branches the commits originally came from.
Connect SourceTree to BitBucket
Asked by smetired:

My bitbucket account has been authenticated in Sourcetree (v2.3.5). But I hit "clone to Sourcetree" on Bitbucket, nothing happens


Answers:
author: Ana Retamal
body: Hi Swetha, welcome to the Community!

Are you still experiencing this problem? If so we'll need more information to help you with this issue:

1. Are you using Bitbucket Server or Cloud?
2. Are you able to clone the repo using the command line?
3. What browser are you using?
4. Can you send us a screenshot of what happens when you try to clone the repo?

Kind regards!

Ana