youngmon/atlassian-qna huggingface dataset:
Errors persist after updating SSH client to ECDSA
Asked by patrick_here:

I am running Ubuntu 20.04. After following the instructions for the change to ECDSA host keys get the warning shown below:

$ ssh git@bitbucket.org host_key_info  
Warning: the ECDSA host key for 'bitbucket.org' differs from the key for the IP address '104.192.141.1'  
Offending key for IP in /home/johndoe/.ssh/known_hosts:20  
Matching host key in /home/johndoe/.ssh/known_hosts:29  
Are you sure you want to continue connecting (yes/no)?  
You are using host key with fingerprint:  
ecdsa-sha2-nistp256 SHA256:FC73VB6C4OQLSCrjEayhMp9UMxS97caD/Yyi2bhW/J0

Note however that my ssh does work ...it's just that I also get this warning when I attempt to do a "git push" (the "push" works but I do get the error).

I have done "$ ssh-keygen -R bitbucket.org" ...and it doesn't help.

Does anyone know the fix?


Answers:
author: Erez Maadani
body: Hi [@patrick_here](/t5/user/viewprofilepage/user-id/3347032)

Looks like there are two different host keys which are possible match to bitbucket.org, one in line 20 and one in line 29.

Try commenting out both lines (using \`#\` at the beginning of the line) and run "$ ssh-keygen -R bitbucket.org \&\& curl <https://bitbucket.org/site/ssh> \>\> \~/.ssh/known_hosts"

See more info and helpful commands here: [https://bitbucket.org/blog/ssh-host-key-changes?utm_source=alert-email\&utm_medium=email\&utm_campaign=ssh-key-rotation_EML-15879\&jobid=106086164\&subid=1685735409](https://bitbucket.org/blog/ssh-host-key-changes?utm_source=alert-email&utm_medium=email&utm_campaign=ssh-key-rotation_EML-15879&jobid=106086164&subid=1685735409)

comments: author: patrick_here
body: Thank you Erez! With your input I was able to resolve it! I commented-out line 20 (which had been present in my known_hosts for years). Then when I ran "host_key_info" command ++for the first time++ I got this warning message:

Warning: Permanently added the ECDSA host key for IP address '104.192.141.1' to the list of known hosts.

...but when I ran the "host_key_info" command for ++the second time++, the warning was gone and I got the correct output.

I'm wondering: shouldn't the instructions be changed? Wouldn't it be logical to expect that everyone else would have a line similar to my line 20 in their known_hosts ...which would need to be removed before adding the new ECDSA host key ?


Tags: bitbucket-cloud

cloud
Bitbucket team licensing
Asked by Victor Mesa:

Hey, team!  

We are currently using Jira as team, we want to start using BitBucket to share repositories within the team.  

Do we need to add any additional license to our current users?  

We are 19 team members using Jira, but probably only 10 or so might use Bitbucket.


Answers:
author: Robert Wen_ReleaseTEAM_
body: Hello [@Victor Mesa](/t5/user/viewprofilepage/user-id/5242405) ! Welcome to the Atlassian Community!

Bitbucket would be its own separate licensing. So, you'd license only those that would be using it (10).

Licensing info for Bitbucket is here: <https://www.atlassian.com/licensing/bitbucket#bitbucket-cloud>

Hope this helps

comments: author: Victor Mesa
body: Thanks a lot, Robert, it helped a lot.


Tags: bitbucket-cloud

cloud
I try to invite a user but they do not receive any email (even in junk mail)
Asked by negfrequency:

I think this happened since the user originally had mail forwarding on (which our email server does not permit). They then disabled that, and are now no longer receiving any Atlassian invite emails, though they weren't before. They are at least receiving other emails though after disabling forwarding.


Answers:
author: Patrik S
body: Hello [@negfrequency](/t5/user/viewprofilepage/user-id/4851256) and thank you for reaching out to the Community!

As you mentioned your email server does not allow mail forwarding, and the user previously had it enabled, this might have caused the previous invitation to fail and the email to potentially be added to our internal email impression list, which would prevent the user from receiving new invitation emails.

In this case, could you please try to resend the invitation email by navigating to**Workspace \> Workspace Settings \> User groups** , select the User group to which you have added the user and you should see a pending invitation? Use the **Resend invitation** option to trigger the invitation again:

![Screenshot 2023-06-14 at 4.00.53 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/263217i9D13482E00C4BEDD/image-size/large?v=v2&px=999 "Screenshot 2023-06-14 at 4.00.53 PM.png")

The resend option should automatically remove the user from our internal suppression list. You can then ask the user to double-check their mail box again, including the Spam/Junk folder.

Hope that helps! Let me know if you are still facing issues to invite the user after following the above steps.

Thank you, [@negfrequency](/t5/user/viewprofilepage/user-id/4851256) !

Patrik S


Tags: bitbucket-cloud

cloud
How do I create a pull request in bitbucket from my jenkins pipeline
Asked by Kylie Collins:

Hello,

I am new to this community and this is my first post.

I am trying to create a Pull request using Jenkins in bitbucket server repo, even though I have installed the pull request plugin I'm still getting errors.

Can anyone help me with this?


Answers:
author: Kylie Collins
body: I was finally able to figure this out and was able to create a bitbucket rest api pull request using the python option of the code and run it in your jenkins pipeline as a script. I hope this helps someone

Find more options to pass into your PR and token documentation here

<https://developer.atlassian.com/cloud/bitbucket/rest/intro/#pullrequest>

<https://confluence.atlassian.com/bitbucketserver/http-access-tokens-939515499.html>

This is the code I used:

import requests  
import json

url = "https://{base-url}/projects/my-project/repos/my-repo/pull-requests"

headers = {  
"Accept": "application/json",  
"Content-Type": "application/json",  
"Authorization": "Bearer {bitbucket-token}"  
}

<br />

payload = json.dumps({  
"title": "Jenkins Pull Request",  
"description": "Updated deployment specification",  
"fromRef": {  
"id": "refs/heads/source-branch-name",  
"repository": "my-repo",  
"project": {  
"key": "my-project"  
}  
},  
"toRef": {  
"id": "refs/heads/base-branch-name",  
"repository": "my-repo",  
"project": {  
"key": "my-project"  
}  
},  
"reviewers": \[  
{  
"user": {  
"name": "reviewer-name"  
}  
}  
\]  
})

<br />

<br />

response = requests.request(  
"POST",  
url,  
data=payload,  
headers=headers  
)

print(json.dumps(json.loads(response.text), sort_keys=True, indent=4, separators=(",", ": ")))


Tags: bitbucket-server

server
How to implement vscode editor on cloud?
Asked by iNPLASS Info Tech:

I need to restrict my developers from copying the code to their local machine by cloning. He should be doing his development only on cloud.

The main purpose is to secure our codebase and prevent unauthorized copy and replication.

Regards

Jeevan


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

If you allow people access to a data set, you can not stop them copying it down to another system. There's no way a service like Bitbucket can even restrict downloads once someone has access, and, in fact, Bitbucket is supposed to be used this way - git is intended to be used for distributed repositories.


Tags: bitbucket-cloud

cloud
Bitbucket and Slack Integration
Asked by Beratcan G?re?:

I'm currently trying to connect bitbucket pull requests to the Slack workspace. When I try branch pattern expressions I'm not getting any notifications on Slack. The document I use is :  

<https://support.atlassian.com/bitbucket-cloud/docs/integrate-bitbucket-cloud-with-slack/>  

I'm trying to find an expression that matches these branches :  

feature/alpha/taskid

bug/alpha/taskid

epic/alpha/taskid

alpha keyword is the keyword that I want to filter.  

I tried many expressions but I wasn't getting any notifications. (Connection has no problem because if I try repository-wide, I get the notifications.)  

I have tried the following:  

'\*/alpha/\*\*'  
\*/alpha/  
'\*\*/alpha/\*\*'  

I have tried them separately :  

feature/alpha/\*

feature/alpha/\*\*

but I couldn't find the reason why. Can you help me please ? Thanks!


Answers:
author: Patrik S
body: Hello [@Beratcan G?re?](/t5/user/viewprofilepage/user-id/5242167) and welcome to the Community!

Could you please try providing the pattern without using the single quotes, like in the below example :

```
*/alpha/**
```

With this syntax, I was able to successfully get the notifications on Slack for the pull requests that involved branches matching that pattern.

Let me know how it goes and if this solves the issue :)

Thank you, [@Beratcan G?re?](/t5/user/viewprofilepage/user-id/5242167) !

Patrik S

comments: author: Beratcan G?re?
body: Hello [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) ,  

Thank you for your answer. Sadly, it didn't work. While I was trying the combinations I figured that if I use the PR's target branch, I get notifications. Should I aim for the target branch pattern or should it work for the base branch ?   

What I meant is if I open a pr like this :

```
feature/alpha/blabla -to-> development/alpha
```

<br />

And if I set the notification pattern as : development/alpha  

I get notification about it. But when I try the :

```
*/alpha/**
```

I won't get the notification about it.


author: Patrik S
body: Hello [@Beratcan G?re?](/t5/user/viewprofilepage/user-id/5242167) ,

You're correct, the Slack pull request events will match against the **destination branch** of the pull request.

The reason why you didn't receive a notification for development/alpha when using the pattern **\*/alpha/\*\*** is because that pattern expects a forward slash after the alpha word, which **development/alpha**does not have.

In this case, you could create another pattern that matches all branches that end with the **alpha** word :

```
*/alpha
```

This should match against development/alpha.

You can create multiple patterns in the Slack configuration to match all the scenarios of your use case.

Thank you, [@Beratcan G?re?](/t5/user/viewprofilepage/user-id/5242167) !

Patrik S


Tags: bitbucket-cloud

cloud

slack
Expected a mapping or list of mappings for merging, but > found scalar
Asked by James Carter:

I really don't get why this simplistic bitbucket pipeline is throwing the yaml syntax error:
> There is a YAML syntax error in your bitbucket-pipelines.yml at \[line 3, column 13\]. Expected a mapping or list of mappings for merging, but found scalar

    definitions:  steps:    - step: &prep_base_images      name: Docker compose build base images      image: docker:latest      deployment: test      script:        - echo "hello world"# Actual pipelines# ==============================================================================pipelines:  branches:    BLAH-137-backend-and-cicd-update:      - step:          <<: *prep_base_images          deployment: development

Does anyone have any ideas?


Answers:
author: Aron Gombas _Midori_
body: My first wild guess would be indentation.

Instead of:

    definitions:  steps:    - step: &prep_base_images      name: Docker compose build base images

Try:

    definitions:  steps:    - step: &prep_base_images        name: Docker compose build base images

Can you see that "name" was indented?

I am not sure if it is required or only a best practice in this file, but if it is required, then it could be the cause.

comments: author: Ian Klek
body: This saved me, thanks! sadly bitbuckets yml validation feature was pathetic and always stated it was valid!


Tags: bitbucket-cloud

cloud
Not receiving email to complete 2FA for BitBucket
Asked by Andrey Vorobyov:

I'm trying to setup 2FA on my bitbucket account, however I'm not receiving the confirmation email after scanning the QR code and successfully submitting the authentication code, please assist!


Answers:
author: Patrik S
body: Hello [@Andrey Vorobyov](/t5/user/viewprofilepage/user-id/5241998) and welcome to the Community!

I checked internally for the email address you used to post this question, and it's not in any of our suppression lists, meaning that there's no blocking for that email from Atlassian side. Also, I confirmed from the logs that recent Bitbucket emails were successfully delivered.

In this case, as sometime the email might be wrongly classified as Spam, I would suggest double-checking the Spam/Junk folder for the 2FA verification email. The email sender should be **notifications-noreply@bitbucket.org**with the title "\[Bitbucket\] Finish enabling two-step verification"

Thank you, [@Andrey Vorobyov](/t5/user/viewprofilepage/user-id/5241998) !

Patrik S

comments: author: Andrey Vorobyov
body: Does not work. Neither old address nor new one - andrey.bitbucket@corsound.ai

Nothing in spam

Need help.


author: Patrik S
body: Hey [@Andrey Vorobyov](/t5/user/viewprofilepage/user-id/5241998) ,

Checking internally I see your bitbucket account is already with 2FA enabled, so I assume you were able to get the verification email. Let us know in case you have any questions.

Thank you, [@Andrey Vorobyov](/t5/user/viewprofilepage/user-id/5241998) !

Patrik S


Tags: bitbucket-cloud

cloud
Install Bitbucket as service on RHEL 9
Asked by IT-Team:

Hi

I'm trying to install bitucket as a service on RHEL 9 (Almalinux 9.2). I choose the option "install service" while installing but there is no service installed.

<br />

Thanks


Answers:
author: Baskar Annamalai
body: Hi there,

The installation wizard has never worked for me on RHEL for service installation. You would be required to set it up the manual way. Please refer to the steps provided in the [Run Bitbucket as a Linux service.](https://confluence.atlassian.com/bitbucketserver/run-bitbucket-as-a-linux-service-776640157.html)

Best regards,  
Baskar Annamalai  
ServiceRocket.

comments: author: IT-Team
body: Thanks, I was able to configure a systemd service as written in the tutorial.


Tags: bitbucket-server

server
how to hook sourcetree to Jira
Asked by Eliah Ninyo:

hello,

I want that in every commit (not push) I will force the developer to open a JIRA issue.

how can I do it?

I already defined in bit bucket that every push has to be with JIRA prefix. but this is only for push action. if someone forget to add the prefix he needs to amend the commit. but if I have couple of commits this is a problem.

I want to force JIRA issue opening and not just adding the prefix. can I do it?


Answers:
author: Mikael Sandberg
body: Hi Eliah,

Welcome to the Atlassian Community.

Since commits in Git are all local actions you would have to create a pre-commit hook that does this for you. You can maintain hooks centrally and share them with your team, see [Two Ways to Share Git Hooks with Your Team](https://www.viget.com/articles/two-ways-to-share-git-hooks-with-your-team/) for example.


author: bgannin
body: Hi [@Eliah Ninyo](/t5/user/viewprofilepage/user-id/3036752),

There isn't a way to do this in Sourcetree's UI currently. I'd recommend using a [pre-commit hook](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks) to ensure that wherever the user commits from they are checked. You'd want to have the hook's script do a search for the prefix and fail if it's not found, showing a URL for creating one in the error message. Hope that helps.

Brian Ganninger  
Principal Developer, Sourcetree


Tags: git
Strange instalation problem
Asked by Micha? Stonawski:

Hi there,

So, I have this problem: I have clean Win 7 on SSD, and I wanted to install Sourcetree, but after click on installer I have logo, and "program update stoped working" error, and "instalation has failed".   

I have the log, maybe u can help me with it... I think I just dont get something what Sourcetree need, but I dont know what t is.   

<https://mega.nz/#!TBdwjIqL!gknemFTMLxWp_5FTbAH2ssVcLoIoiJ47WRiDpJKvAxg> - there is log file, on megadrive.   


Answers:
author: Mike Corsaro
body: Hello! Could you try [installing using the Enterprise installer](https://www.sourcetreeapp.com/enterprise) and see if that fixes the issue? Thanks!

comments: author: Micha? Stonawski
body: With Enterprise installer I can install it, but I have error "Sourcetree stopped working" ;(
Sourcetree install step 2 fail: JavaScript load error
Asked by yancyzhang:

I am installing Sourcetree 3.1.2. The second step is Registration, i have registered Atlassian (Bitbucket) account, so i choose the Bitbucket, then the "JavaScript load error" raised.

Details as below:

We tried to load scripts but something went wrong.

Please make sure that your network settings allow you to download scripts from the following domain:

<https://aid-frontend.prod.atl-paas.net/atlassian-id/front-end/3.4.2>

Environment: Win7 64, and IE11

(i have changed Internet Options as comments by others, it still not works.)

When using Google Chrome, the same error raised.

But when i use Firefox, the script page can display and i can grant access successfully.

Details as below:

Authentication Successful

SourceTree has been successfully authenticated. You may now close this page.

But the Sourcetree install tool has no change, the "Next" button is still not editable, it can't go to the third step "Install tools".

I have spent too much time on the Sourcetree installation , Is there any solution?


Answers:
author: Mike Corsaro
body: Hello! Could you try setting your default browser to Firefox, and then restart the Sourcetree installation process? Additionally could you make sure you have javascript enabled? Thanks!

comments: author: yancyzhang
body: setting your default browser to Firefox ==\>yes, as I said, restart the Sourcetree process then the script page can display and grant access successfully, but the Sourcetree installation process has no any change, the "Next" button is still not editable, it can't go to the third step "Install tools".

Additionally could you make sure you have javascript enabled? ==\> I am very sure to have javascript enabled, it doesn't work.
Unable to set up source tree v3.1.2 using bitbucket account
Asked by GJCHET:

I downloaded the new version of source tree v3.1.2 and for the set up I do created a bitbucket account also. I tried with base Url , user name and password.

From this I am unable to go further. I want to clone the remote repository from the Github.

Please help me how I set up the source tree.

Thanks in Advance.

Geetha


Answers:
author: bgannin
body: Hi [@GJCHET](/t5/user/viewprofilepage/user-id/2898019),

A few questions:

1. Are you using the app on macOS or Windows?

2. Are you using a Bitbucket Cloud or Bitbucket Server account? (they behave differently)

3. Are you shown any errors?

Thanks,

Brian Ganninger  
Principal Developer, Sourcetree
I can't clone a repository to a Google Drive folder
Asked by alecsslab:

I'm trying to clone a repository to my local Mac and I have all my workspace settled into Google Drive (sync locally).  

If I try to clone a repository inside a Google Drive folder, Sourcetree says: "It's impossible to run a clone in an unempty folder."  

But the folder is empty!  

Do you know this behavior? Is there a way to avoid this issue?

Thank you very much


Answers:
author: Jack Nolddor _Sweet Bananas_
body: Maybe the folder contains hidden files?

Pressing down **Command + Shift + Period** in the file system of Mac OS will hide or show invisible files. Could you try?

<br />

![The keyboard shortcut to show or hide hidden files on Mac OS](http://cdn.osxdaily.com/wp-content/uploads/2018/02/toggle-hidden-files-mac-keyboard-shortcut.jpg)

comments: author: alecsslab
body: Hi, thank you for your suggestion. Effectively there was an hidden file: icon?  

I have erased, but however I'm not able to clone a repository inside this folder. The message is the same, it say that it's impossible to clone inside an unempty folder.  

Is there a way to work with Sourcetree and Google Drive folders?

Thank you
BUG: Source Tree hijacking CPU/RAM with BitBucket Logon
Asked by Jakob Oftebro:

There has been a bug related to authenticating to BitBucket via SourceTree for a while. I believe the bug is expected(?) I assume it is on your radar.   

However, the behavior depicted below is dangerous and unacceptable. I left my Laptop on over the weekend due to some unforeseen circumstances. When I came back, SourceTree had hijacked all of my RAM (32GB!) and CPU by initiating hundreds of BitBucket logon prompts. My fan was going at it and the laptop was running hot, all because of these BitBucket logon prompts.

I am not the only on experiencing this, please advice

J

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


Answers:
author: Mike Corsaro
body: Hello! This is probably an issue with the git-credential-manager for windows. Could help me with some more details?

* Which version of Sourcetree you're using
* Which version of Git is installed (check under Options \> Git)

In the meantime, try upgrading your version of the git-credential-manager for windows **or**download a newer version of git which bundles the credential manager.

Thanks!

comments: author: Mike Corsaro
body: (this comment specifically: [https://jira.atlassian.com/browse/SRCTREEWIN-11421?focusedCommentId=1955977\&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-1955977](https://jira.atlassian.com/browse/SRCTREEWIN-11421?focusedCommentId=1955977&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-1955977))


author: Jakob Oftebro
body: Thank you Mike Corsaro,  

I was able to fix this issue by updating my GIT to a version that bundles the credential manager.
highlight branch lines on mouse hover
Asked by Armstrong Li:

Hope source tree highlight the branch lines. It is not highlighted and hard to see which commits the branch has, or where the branch goes if there are many branches.


Answers:
author: bgannin
body: Hi [@Armstrong Li](/t5/user/viewprofilepage/user-id/3036512),

Please file feature requests in our public trackers ([Mac](https://jira.atlassian.com/browse/SRCTREE), [Windows](https://jira.atlassian.com/browse/SRCTREEWIN)) so that other users can watch, vote, and comment on it. This helps us prioritize work for future updates. Thanks!

Brian Ganninger  
Principal Developer, Sourcetree
How do i clone project from azure devops?
Asked by kush jadia:

How do i clone project from azure devops?


Answers:
author: bgannin
body: Hi [@kush jadia](/t5/user/viewprofilepage/user-id/2635382),

You can use File -\> New -\> Clone from URL to directly enter and perform a clone. Or if you added an Azure DevOps account, you can easily [browse and clone remotes repositories](https://confluence.atlassian.com/get-started-with-sourcetree/install-and-set-up-sourcetree-847359043.html) in our UI. Hopefully that clarifies a bit.

Brian Ganninger  
Principal Developer, Sourcetree

comments: author: bgannin
body: On macOS there's a known issue with supporting the new format for Azure DevOps URLs which we're investigating for the next update.
Refreshing remote repositories failed -> able to sign-in -> can't close popup window
Asked by anna_kazakevitch:

Refreshing remote repositories failed -\> able to sign-in -\> within popup window can see bitbucket web page. There is only option to close popup is to click 'Cancel' button that returns me to unsigned status![Screen Shot 2019-04-12 at 11.13.32 PM.png](/t5/image/serverpage/image-id/51452i58D4518DF6C62BE1/image-size/large?v=v2&px=999 "Screen Shot 2019-04-12 at 11.13.32 PM.png")


Answers:
author: bgannin
body: Hi [@anna_kazakevitch](/t5/user/viewprofilepage/user-id/3031884),

What version are you using? In 3.0 we needed to redo the Bitbucket OAuth authentication (which now supports browser based login) and it broke prior releases that need to sign in for an account inside the app to authorize access. Our apologies for the hiccup; we recommend upgrading to the latest and to re-add your account.

Brian Ganninger  
Principal Developer, Sourcetree

comments: author: anna_kazakevitch
body: thanks a lot