youngmon/atlassian-qna huggingface dataset:
Full end-to-end yaml script for deploy to Az App Service
Asked by Paul VanRoosendaal:

Where can I find a full example of using a Bitbucket pipe for deploying to Azure App Service?

I find the pipe part but I don't know how to tie the build part with the deployment part. I find some examples that zip the package up but then I don't see how to move that zip to Azure App Service. Thanks.


Answers:
author: Igor Stoyanov
body: Hi [@Paul VanRoosendaal](/t5/user/viewprofilepage/user-id/5058037) . Thanks for your question.

[Full list of the Azure pipes you can find here](https://bitbucket.org/product/features/pipelines/integrations?&search=azure).

Regards, Igor


Tags: bitbucket-cloud

cloud
Multiple self hosted runners on Windows ?
Asked by Romain T_:

For macOS the documentation specify that only one runner is supported per machine. But nothing on the [Windows page.](https://support.atlassian.com/bitbucket-cloud/docs/set-up-runners-for-windows/)

But in practice, I set up two runners at the same time, and if one is doing a very long step, and I start another pipeline that would be handled by the second runner, it gets stuck on its first step (with no apparent message, just nothing is displayed in the web UI, and when I check its logs on the machine, it shows it finished its step but didn't start the next one) until the first pipeline is completely finished.

<br />

Is it a known issue ? Or are multiple runners also not supported on Windows ?


Answers:
author: Mark C
body: Hi [@Romain T_](/t5/user/viewprofilepage/user-id/5038109),

Thank you for reaching out to the community.

While you can start multiple Windows runners in a single self-hosted machine, right now, we only support running one runner per machine as mentioned in the same [documentation](https://support.atlassian.com/bitbucket-cloud/docs/set-up-runners-for-windows/) as well:
> :warning: Currently we only support running one runner per machine.

Let me know if you have further questions.

Regards,  
Mark C

comments: author: Romain T_
body: My bad, now I just saw it as well on the Windows page... Sorry about that! Thanks for confirming :)


author: Mark C
body: No worries at all.  

Regards,  
Mark C


Tags: bitbucket-cloud

bitbucket-pipelines

bitbucket-runners

cloud

server
Is Bitbucket Server affected by Apache Commons Text ver 1.5-1.9? (CVE-2022-42889)
Asked by vhoutgraaf:

See <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-42889>


Answers:
author: Christian Glockner
body: Hi,

Our security team is aware of this issue and are currently investigating any potential impact to our products. As a per our [security advisory publishing policy](https://www.atlassian.com/trust/security/bug-fix-policy), if this issue has a critical severity impact with any of our products, we will send a security advisory alert.

Cheers,

Christian

Premier Support Engineer

Atlassian


author: Christian Glockner
body: Our security team has assessed this vulnerability and determined that Bitbucket Server is not vulnerable as it does not use the StringSubstitutor interpolator.

Products using an impacted versions of Apache Commons Text will be updated in accordance with our [Data Center and Server Bug Fix Policy](https://confluence.atlassian.com/support/atlassian-data-center-and-server-bug-fix-policy-201294573.html).


Tags: bitbucket-server

server
Someone has already added that key as an access key to a repository
Asked by Roni Ezrati:

hi,

When trying to generate SSH key I'm getting the following error -

Someone has already added that key as an access key to a repository

I checked the accounts I have and. they are not using any ssh key.

Can you please help me.


Answers:
author: Theodora Boudale
body: Hi [@Roni Ezrati](/t5/user/viewprofilepage/user-id/5057735),

The error message indicates that the public SSH key you are trying to add is already added as an Access key to a repo (and not to an account).

An SSH key can be added as an Access key to a repository if you open the repository on Bitbucket Cloud website, go to **Repository settings** and then select **Access keys** . On this page, you can also view and remove existing **Access keys** from repos (you need to have admin access to a repo in order to access the **Repository settings** and the **Access keys** pages).

[Access keys](https://support.atlassian.com/bitbucket-cloud/docs/add-access-keys/) provide Read-only access to repositories. A certain public key can be added as an Access key to multiple repositories, however, it is not possible to use it as an account's SSH key at the same time.

You can follow the steps I mentioned above with any repositories you have admin access to in order to find out which ones have this key and then remove it. If you still cannot figure this out, I see that you have access to a workspace on a paid billing plan. You can therefore create a ticket with the support team where you can share the public SSH key you are trying to add and we can check where this key has been added.

You can create a ticket via <https://support.atlassian.com/contact/#/>, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product. Please make sure to provide the workspace-id of the workspace that is on a paid billing plan, in order to be able to proceed with the ticket creation.

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

Kind regards,  
Theodora


author: Nic Brough -Adaptavist-
body: There's no easy way to work this out because the keys that belong to other accounts should not be shared.

If you shared the key with someone, you should know who. If you were given the key by someone, then you'll need to ask them.

If you have no luck chasing it down, you can raise a support request with Atlassian, and they can search out the key for you and hence identify the account you shared it with.

If you don't want to spend ages chasing down the share, then you can create a new key for your account and use that instead. You should do this anyway, so you are not sharing keys.


Tags: bitbucket-cloud

cloud
Problem with bitbucket Pipeline
Asked by Artur Chilingaryan:

Hello, could you help me please, PipeLine work unstable during the build step, might it be database connection unless yes, why does it work normal in the local, is it possible bitbucket and Postgres have an some connection trick, in my opinion problem depend on connection database, during which pipeline work continuously but never across next step


Answers:
author: Patrik S
body: Hello [@Artur Chilingaryan](/t5/user/viewprofilepage/user-id/5057560) ,

Welcome to Atlassian Community!

In order for us to help you investigate the issue, we will need a bit more context of the error you are facing and what you are trying to achieve, so I'd like to ask you a few questions :

* Could you share your bitbucket-pipeline.yml file definition here, with the commands you are executing as part of your build?
* Can you paste here the logs of your pipeline build containing the error you are receiving?
* Have you tried to test it locally in a docker container, and faced the same issue? For instructions on how to test it locally with docker, please refer to the following guide: [Debug Pipelines locally with Docker](https://support.atlassian.com/bitbucket-cloud/docs/debug-pipelines-locally-with-docker/)

Just a heads-up, when sharing logs and your pipeline configuration here, please make sure to sanitize any personal information, such as username, passwords, workspace name, etc.

Let me know if you have any questions.

Thank you, [@Artur Chilingaryan](/t5/user/viewprofilepage/user-id/5057560) .

Kind regards,

Patrik S


Tags: bitbucket-cloud

cloud
Problem adding SSH key: "Someone has already added that key as an access key to a repository."
Asked by giorgio-duminuco:

I cannot add my SSH key to my account because of this: "Someone has already added that key as an access key to a repository."  

I have removed all the old keys but nothing changed. I would need to solve this problem.  

Thank you.  

<br />


Answers:
author: Theodora Boudale
body: Hi [@giorgio-duminuco](/t5/user/viewprofilepage/user-id/3301396),

The error message indicates that the public SSH key you are trying to add is already added as an Access key to a repo (and not to an account).

An SSH key can be added as an Access key to a repository if you open the repository on Bitbucket Cloud website, go to **Repository settings** and then select **Access keys** . On this page, you can also view and remove existing **Access keys** from repos.

[Access keys](https://support.atlassian.com/bitbucket-cloud/docs/add-access-keys/) provide Read-only access to repositories. A certain public key can be added as an Access key to multiple repositories, however, it is not possible to use it as an account's SSH key at the same time.

You can follow the steps I mentioned above with the repositories of your workspace in order to find out which ones have this key and then remove it. If you still cannot figure out it, please feel free to let me know and I can create a support ticket for you so that you share the public key and we let you know where it is added.

Kind regards,  
Theodora


author: Nic Brough -Adaptavist-
body: There's no easy way to work this out because the keys that belong to other accounts should not be shared.

If you shared the key with someone, you should know who. If you were given the key by someone, then you'll need to ask them.

If you have no luck chasing it down, you can raise a support request with Atlassian, and they can search out the key for you and hence identify the account you shared it with.

If you don't want to spend ages chasing down the share, then you can (and should) create a new key for your account and use that instead.

comments: author: Yura
body: \[Del\]


author: Nic Brough -Adaptavist-
body: Nope, we're not your admins, you'll need to ask them, or Atlassian if you don't know who your admins are.


Tags: bitbucket-cloud

cloud
Unable to login to bitbucket
Asked by Konstantinos Kokkorogiannis:

Hi there {#toc-hId--523234019}
------------------------------

i am getting following error when login to bit bucket account.

"You may run into this issue when you use specific browsers or add-ons that hide the referer header for id.atlassian.com and other Atlassian sites. Check for these and then try logging in again."

Thanks,

Konstantinos


Answers:
author: Theodora Boudale
body: Hi Konstantinos,

Your Bitbucket Cloud account was indeed deactivated, I went ahead and reactivated it.

Please feel free to let me know if you are able to log in now.

Kind regards,  
Theodora


author: Alex Koxaras _Relational_
body: Hi [@Konstantinos Kokkorogiannis](/t5/user/viewprofilepage/user-id/343720)

Did you try logging in from an incognito/private window?

comments: author: Konstantinos Kokkorogiannis
body: Hi Alex,

I tried from private/incognito from chrome.

I tried emptying all cache/local storage/session storage/cookies for that domain

I also tried completely different browser.

No luck

Note: Haven't used the account in many many many years (could be deactivated or in an inactive state).


Tags: bitbucket-cloud

cloud
Sourcetree 2.3.5 fails with an error on launch in Windows 10
Asked by Rohith C:

After installing SourceTree 2.3.5 , on launch it fails to start with this error (screenshot).   
When i close this window and relaunch , nothing appears although i can see the process running in task manager.

Any one else facing similar issues in windows 10 ?  
![Sourcetree 2.3.5.0_error.png](/t5/image/serverpage/image-id/10813iBD482602E6C447C4/image-dimensions/832x437?v=v2 "Sourcetree 2.3.5.0_error.png")


Answers:
author: Ana Retamal
body: Hi Rohith! This is a bug and it was reported at bug [SRCTREEWIN-7897](https://jira.atlassian.com/browse/SRCTREEWIN-7897). Some users have shared their solutions there.

Make sure that your local installation of [Git for Windows](https://git-for-windows.github.io/) is up-to-date. You can manually update to the latest version of Git for Windows, and everything everything should be back to normal. You can also update the embedded Git through the options-menu.

Let us know if this worked for you!

Best regards,

Ana

comments: author: Rohith C
body: Thanks For the reply Ana

It worked on first launch for me , later launches - it flashes a suberror window and nothing else appears.


Tags: windows
How to get "Use global user settings" to stick?
Asked by Akira Youngblood:

By default, Sourcetree has populated the user information (under Repository Settings \> Advanced \> User Information) with the name and email address associated with the Atlassian account I used to register Sourcetree. However, I wish to override these with the global user settings (as shown under Options \> General \> Default user information).

Conveniently, there is a checkbox ("Use global user settings") for this. However, this checkbox does not seem to have any effect: after checking the checkbox, selecting "OK", and re-opening the Repository Settings window shows the box unchecked.

Is this is a known bug? Is there an established workaround? Am I not understanding how checkboxes work?

Edit: Furthermore, altering the Full Name and Email address fields directly doesn't work. Any values entered under "User Information" appear to be immediately reverted after clicking "OK".

For reference, this is with Sourcetree for Windows version 2.3.5.0, on Win7.


Answers:
author: minnsey
body: Hi  

Unfortunately there is a bug with that setting, it is on our backlog.

comments: author: minnsey
body: see <https://jira.atlassian.com/browse/SRCTREEWIN-6999>


Tags: windows
Does the new build status feature not work with ssh alias?
Asked by Jan Dockx:

I have a repo on bitbucket, checked out in Sourcetree via ssh with an alias (\~/.ssh/config). Bitbucket pipelines are enabled and working.

In Sourcetree, I see a white plus sign on a blue background. On click, I am asked to 'migrate now'. Clicking asks to 'create a remote repository', which I obviously already have.

Am I misunderstanding something, or might the reason be that this new feature does not recognize the ssh alias as Bitbucket?


Answers:
author: Jan Dockx
body: Non-sequitur

1) There is a \`bitbucket-pipelines.yml\`

2) The origin remote is a Bitbucket Cloud repository, i.e., an ssh alias to Bitbucket Cloud

3) I see what I described

2a) push and fetch works

My question was, why do I see what I described, which is not the build status? Am I doing something wrong, or are ssh aliases NYI?

comments: author: Jan Dockx
body: bitbucket-pipelines.yml:

```
# See https://confluence.atlassian.com/x/14UWN for more examples
image: node:6.10.3

pipelines:
  default:
    - step:
        caches:
          - node
        script:
          - export NODE_ENV="ci"
          - echo 'node:' `node --version`
          - echo 'npm:' `npm --version`
          - npm install
          - echo 'branch:' `git rev-parse --abbrev-ref HEAD`
          - echo 'tags:' `git name-rev --tags --name-only $(git rev-parse HEAD)`
          - echo 'sha:' `git rev-parse --verify HEAD`
          - echo $NODE_ENV
          - npm test
          - git tag build/$BITBUCKET_BUILD_NUMBER
          - npm run legalReport
          #- git push origin --tags MUDO doesn't work yet - need ssh key
```

remote:

```
>git remote
origin
>git remote get-url origin
git@FarmadBitBucket.org:farmadcode/pharmacy-registrar.git
```

\~/.ssh/config:

```
?
# --- SourceTree Generated ---
Host FarmadBitBucket.org
?? ?HostName bitbucket.org
?? ?User j_dockx
?? ?PreferredAuthentications publickey
?? ?IdentityFile /Users/jand/.ssh/j_dockx-Bitbucket
?? ?UseKeychain yes
?? ?AddKeysToAgent yes
# ----------------------------
?
```


author: bgannin
body: Sourcetree is looking at the remotes (for Bitbucket Cloud) and for the presence of a Bitbucket Pipelines configuration file. If those aren't present then the messaging changes.

Brian Ganninger  
Senior Mac Developer, Sourcetree
Having a problem reading a user input in SourceTree from precommit shell script hook
Asked by Amit Tare:

I am using SourceTree 1.6. We are using precommit shell script GIT hook. In the hook we are asking the developer to input a value from keyboard and then that value is captured in a variable and used further. When I do a commit using 'git commit' command from GIT Bash Tool it stops for the user input , after the user enters the value the script is completed successfully. But when we do a commit from SourceTree, it seems the script waits for the input but I don't see the place where to provide the input. Can you please help ?

My script is something like this:

#!/bin/sh

exec \< /dev/tty

read -p 'path : ' user_entry  
echo $user_entry

exit 0


Answers:
author: bgannin
body: Hi Amit,

SourceTree 1.6 is no longer a supported version; it's available for download only for those that need it as a fallback for a specific reason. That said, interactive scripting triggered by commits isn't supported within the Sourcetree UI.

Brian Ganninger  
Senior Mac Developer, Sourcetree
Source Tree Automatically Adds Account Credentials
Asked by Devon Fritz:

I do not want to have credentials automatically saved on the Source Tree client so that every time some tries to commit using that computer/client they have to enter a username and password. However, every time credentials are entered (say for a push action) they are saved in the Accounts list and set as the default authentication. Anyone know how to configure Source Tree to act this way?

Prompt

![Screen Shot 2017-12-08 at 3.07.57 PM.png](/t5/image/serverpage/image-id/10707i79850CAE2538037B/image-dimensions/383x204?v=v2 "Screen Shot 2017-12-08 at 3.07.57 PM.png")

Account Added

![Screen Shot 2017-12-08 at 3.08.25 PM.png](/t5/image/serverpage/image-id/10706i892F12499268319D/image-dimensions/396x209?v=v2 "Screen Shot 2017-12-08 at 3.08.25 PM.png")


Answers:
author: Ana Retamal
body: Hi Devon! I'm afraid what you're asking for is not possible. Sourcetree is intended to be used by a single user, as normally you won't want different users working in the same copy of the file. This is one of the strong points of Git, that different users can work locally in different copies of the same code, and then share it together.

Ideally, each user would have a user profile in the computer with their own copy of Sourcetree connected to their accounts.

Regards,

Ana

comments: author: Devon Fritz
body: What about not automatically saving credentials?
"Git LFS: install required"
Asked by Akira Youngblood:

After cloning an LFS-enabled repository from a BitBucket server, I get the following notification each time I start Sourcetree and after most operations on the repo (pushing/pulling/etc):

![lfs-complaint.PNG](/t5/image/serverpage/image-id/10687i3A9170F412324DB1/image-size/large?v=v2&px=999 "lfs-complaint.PNG")

Regardless of whether I select Yes or No, the dialog constantly re-appears. I am aware that I can check "Don't ask me again" but I am concerned that this indicates a problem with SourceTree's LFS support and using Sourcetree with this repo will cause problems with LFS.

Is Sourcetree expected to work 'out of the box' with LFS-enabled repos? Is there a workaround for this warning?


Answers:
author: bgannin
body: If Git and Git-LFS have been properly downloaded and installed then everything should "just work" with Sourcetree. I'll have one of the Windows devs chime in as well to confirm.

Brian Ganninger  
Senior Mac Developer, Sourcetree


Tags: git

git-lfs
Error installing SourceTree 2.3.5.0 on Windows 7
Asked by Paul L:

Problem Event Name: APPCRASH  
Application Name: SourceTree.exe  
Application Version: 2.3.5.0  
Application Timestamp: 59d5304e  
Fault Module Name: d3d9.dll  
Fault Module Version: 6.1.7601.17514  
Fault Module Timestamp: 4ce7c5a4  
Exception Code: c000001d  
Exception Offset: 000000000001ce4f  


Answers:
author: minnsey
body: Hi  

Is there anything more in the Event Viewer, often there are 2 consecutive entries?  

Alternatively is there anything in %localappdata%\\Atlassian\\Sourcetree\\sourcetree.log ?
What information is shared with Atlassian using SourceTree login?
Asked by Erkki Lukk:

We are thinking about using SourceTree in our company. As part of installation the user needs to log in with an Atlassian account. What information will be shared with Atlassian as part of this? Our company is operating in a tight security context and hence need to be on top of what leaves the company network.


Answers:
author: bgannin
body: You can find out about Atlassian's privacy policy [here](https://www.atlassian.com/legal/privacy-policy) (Sourcetree is a downloaded product in this case.) As an Enterprise you might be interested in our [proposal for changes](https://groups.google.com/d/msg/atlassian-sourcetree-beta/nzMVgvcIr24/sYJS1S2jBgAJ) to the Windows setup and registration discussed on our [*trusted-testers* mailing list](https://groups.google.com/d/forum/atlassian-sourcetree-beta#).

comments: author: Erkki Lukk
body: Thanks this is very helpful. Registration via a local instance of Bitbucket would work fine for us.
Clone UI fails to parse URL with "Error: System.ComponentModel.Win32Exception: ..."
Asked by jarkman:

Just installed SourceTree 2.3.5.0 on Win7.

When I try to clone, I see a complaint below the URL:

Repository type ? This is not a valid source path / URL

The Details button shows me this:

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false ls-remote https://jarkman@bitbucket.org/bristolmaritimerobotics/whiskers.git  
Output:  
Error: System.ComponentModel.Win32Exception: The system cannot find the file specified

Seems like a SourceTree bug, not a problem with the URL to me. Any idea how I can fix it ?

Thanks!

Richard


Answers:
author: minnsey
body: Hi  

Is that the full error message?  

I'd be tempted to say it cannot find git, but are other repos working OK?  

You can check the git settings in Tools/Options/Git tab

comments: author: jarkman
body: That's the whole message, and (having cloned from the command line) SourceTree can now push \& pull happily. That seems to suggest that it can find git for other purposes.
Remove endless merge branch commited
Asked by celsomtrindade:

I have a project I'm working on and it's using Git Flow to create/merge branches. There were a release branch that when I finished it (using the GitFlow buttons) it generated a weird branch named "Merge branch master into develop" and it has an endless line from that point all the way past the first commit, like the image below.

![commit.jpg](/t5/image/serverpage/image-id/10514i4B5E65CE4664DD34/image-size/large?v=v2&px=999 "commit.jpg")

As you can see, the yellow line is goin nowhere and I don't know what caused this. I'm using sourcetree and the project is also online, on a bitbucket repository.

Before I could get rid of it by changing the option from "All branches" to "Current branch" but now it's always showing that yellow branch.


Answers:
author: minnsey
body: Hi  

To be honest I'm not quite following the problem.  
Looking at the image the yellow line/branch completes by merging back into the red line/branch, with the commit message 'Merge branch master into develop'.

comments: author: celsomtrindade
body: It does merge. But it comes from nowhere. The very first commit is the one with the tag \`1.0.0\`. The yellow line doesn't start anywhere.
Is there a source tree documentation in pdf?
Asked by Ade QA:

I can't seem to to be able to find a source tree documentation in pdf. Has anyone got a link to this resource?


Answers:
author: Ana Retamal
body: Hi! We don't have any Sourcetree documentation in PDF, but you can find our online Knowledge base at [Sourcetree Basics](https://confluence.atlassian.com/sourcetreekb/sourcetree-basics-780870007.html).

Hope that helps!

Ana