youngmon/atlassian-qna huggingface dataset:
Required Build Settings
Asked by Konrad Dlugosz:

Bitbucket provides required build options to allow specific branches to have successful build before they can be merged. It requires a build key that is the name of the job. However, I can't seem to find the right build key as they job is successful but bitbucket still doesn't allow the merge to happen.


Answers:
author: Thomas
body: We have the same issue.

We have a mulitbranch pipeline and I cannot get it to match any of the Jenkins build keys.

It always tells me that there is a build needed, no matter what I give as key.

I have tried to far:

\<project\>  
\<project\>/  
\<project\>/\*  
\<project\>/\<pipeline\>  
\<project\>/job/\<pipeline\>  
\<project\>/\<branch\>/\<pipeline\>  

nothing works.

comments: author: Konrad Dlugosz
body: Hi Tomas,   

I have set up Bitbucket and Jenkins on virtual machine with integration using **Bitbucket server integration plugin**and managed to get the required-build to work. The build key is simply the job name. If the job is in folder you must include folder name. However, still having issue to get this to work on the organisation env. Investigating how to resolve it.


Tags: bitbucket-server

build

server
Invalid credentials
Asked by Azhagiri R:

Opening repositories:  
C:\\LMS_Corporate  
Pushing Hello_2_0  
Error encountered while pushing to the remote repository: Git failed with a fatal error.  
Git failed with a fatal error.  
Invalid credentials  
Logon failed, use ctrl+c to cancel basic credential prompt.  
cannot spawn /c/program files/microsoft visual studio/2022/community/common7/ide/commonextensions/microsoft/teamfoundation/team explorer/Git/mingw32/libexec/git-core/git-askpass.exe: No such file or directory  
could not read Password for '<https://XXXX@bitbucket.org>': terminal prompts disabled


Answers:
author: Ben
body: Hey Azhagiri!

* The most common issue customers are experiencing related to authentication is due to the deprecation of GIT username/password in favour of App Passwords on 01/03/2022:  
  <https://community.atlassian.com/t5/Bitbucket-articles/Announcement-Bitbucket-Cloud-account-password-usage-for-Git-over/ba-p/1948231>
* If you are using a GIT client such as Sourcetree, please see the following steps:  
  <https://community.atlassian.com/t5/Sourcetree-articles/Bug-Fix-Sourcetree-for-Windows-authentication-error-when/ba-p/1965968>
* You will need to make use of an AppPassword for communicating to GIT via HTTPS.  
  We have documentation for usage of app passwords at the following link:  
  <https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/#Create-an-app-password>
* Essentially, when connecting via \*HTTPS\* you will use your \*AppPassword\* alongside your username seperated with a ":" character.
* Therefore for example, if you are authenticating to \*GIT over HTTPS\* to push/pull you will need to update your remote URL's to include the \*AppPassword\*:  

  ```
  git remote set-url origin https://USERNAME:APP_PASSWORD@bitbucket.org/username/reposlug.git
  ```

* The same applies when performing git clone:

  ```
  git clone https://USERNAME:APP_PASSWORD@bitbucket.org/username/reposlug.git
  ```

Hope this helps.  

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
VS2022 push to bitbucket login issue
Asked by Thomas Jenkins:

I am trying to push to the repo and I get a prompt for bitbucket login. Enter my info and it never logs me in. I reset my password and tried several times and seems to be endless cycle without any user feedback.

Not sure it is with VS2022 auth integration or on the Bitbucket side. Anyone else have same issues? Any workaround?


Answers:
author: Patrik S
body: Hey [@Thomas Jenkins](/t5/user/viewprofilepage/user-id/4807103) ,

Welcome to Atlassian Community.

From the details you have provided so far, it seems that you might have been affect by the recent changes with [removal of support for Atlassian account password for operations GIT over HTTPS and API requests](https://bitbucket.org/blog/deprecating-atlassian-account-password-for-bitbucket-api-and-git-activity).

In this case, I would suggest you trying to login with your Bitbucket username (not e-mail address), along with an App Password with appropriate permissions :

* The bitbucket username can be found in your account's personal settings (<https://bitbucket.org/account/settings/>)
* For instructions on how to create the app password, we have the below documentation :
  * <https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/>

Also, we have the following community post containing instructions on that might help you on resolving the issue :

<https://community.atlassian.com/t5/Bitbucket-articles/Announcement-Bitbucket-Cloud-account-password-usage-for-Git-over/ba-p/1948231>

The article contains a FAQ section, so please make sure to scroll to the bottom of the page to find the answers that might be similar to your case.

Hope that helps. Let us know in case you run into any issues with the suggestions above.

Thank you, [@Thomas Jenkins](/t5/user/viewprofilepage/user-id/4807103)

Kinds regards,

Patrik S


author: javiercabello
body: me to, i'm using https login and take the same error

comments: author: javiercabello
body: Confirm access to your account {#toc-hId--1181620022}
-----------------------------------------------------

Invalid redirect_uri

This integration is misconfigured. Contact the vendor for assistance.


Tags: bitbucket-cloud

cloud
bitbucket account locked out.
Asked by Noel Melvin:

Hi,

I am getting this message when i try to do Pull in Source tree software.

Your Bitbucket account has been locked. To unlock it and log in again you must  
solve a CAPTCHA. This is typically caused by too many attempts to login with an  
incorrect password.

Updated the current password in Control panel-\>Credential Manager

and also in Tools-\>Options-\>Authentication. but stil not working.


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Noel Melvin](/t5/user/viewprofilepage/user-id/4805887) ,

welcome to the Atlassian community!

You need first to login to Bitbucket via browser resolving captcha. After doing that you need to verify that your password, in source tree, is correct.

For a similar error please read the following article <https://komal-agrawal108.medium.com/authentication-error-source-tree-90db7b422e9c>

Hope this helps,

Fabio

comments: author: Noel Melvin
body: Hi Fabio,

I really dont know how to access bitbucket through URL. The only thing i know is using Source Tree software. Need your help.![source tree error.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/187999i1E119AAB1FD0CA46/image-size/large?v=v2&px=999 "source tree error.JPG")


author: Fabio Racobaldo _Herzum_
body: The bitbucket URL should be <https://stash.mynmg.com>

Try to access with your credentials to that URL. After doing that retry to use SourceTree


Tags: bitbucket-cloud

cloud
bithucket server high cpu high memory
Asked by klin111:

The bitbucket service is unavailable, high cpu and high memory appear, and it is found that git pack-objects occupies a lot of memory and cpu resources. This problem happens occasionally, is there any solution?


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@klin111](/t5/user/viewprofilepage/user-id/4806877) ,

there are many aspects that could impact your bitbucket performances. Please read the following article <https://confluence.atlassian.com/bitbucketserver/scaling-bitbucket-server-776640073.html> that could help you in order to increase performances.

Hope this helps,

Fabio

comments: author: klin111
body: Thanks, I have read this official article and it doesn't seem to solve my problem. git cpu memory high problem. Do you have any other articles to recommend?


author: Mark Hitt
body: Same for me, I've followed the resources doc and configured the server to represent a large instance of Bitbucket and it still crashes regularly.


author: Nearshoring Java Websphere
body: no update on this issue? we are facing similar issue with several git pack objects taking all the systems memory and leading to OOM errors in linux

comments: author: Mark Hitt
body: I was able to get it resolved on my end. Our build server, Team City, was connecting to Bitbucket so frequently, I believe each project was connecting every 30 seconds looking for code changes that it was taking up most of the resources. To resolve the issue, we setup webhooks between Team City and Bitbucket so that a build would run only when code was committed, instead of each project checking every 30 seconds.

Hope this helps


author: Nearshoring Java Websphere
body: Thanks Mark. Something similar on our end. We had end users uploading big files which were being processed by git consuming so much memory and cpu and having the rest of processes waiting until collapse of the system.

More control on what users are uploading to certain projects solved the issue.

Thx for your reply!


Tags: bitbucket-server

server
"Someone has already added that key as an access key to a repository."
Asked by Pitch Arunsuwannakorn:

Hi,

I am getting this issue "Someone has already added that key as an access key to a repository." when I have added my key in our account.

I need your help and support to list up the repoistory and account so that I can remove it from there. Thank you.

Regards,

Pitch


Answers:
author: Caroline R
body: Hi, Pitch, thank you for reaching out to Atlassian Community.

As we'll need to know the public SSH key to further investigate this case, I have created an internal ticket for you using the email of your community account, so you don't have to share this information here.

You should have received an email with a link to the support ticket. Just in case you haven't received it, please feel free to let me know and I can post the ticket URL here. The ticket will be visible only to you and Atlassian staff, no one else can view its contents even if they have the URL.

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

Kind regards,   
Caroline


author: Antonio Aguirre
body: Hi form here,  

the same problem. I was authenticating with https due to the same problem. but now https is no longer available.  

thanks for the help too.  

<br />

<br />

EDIT:  

I solved my problem deleting in my repositories the ssh key and just added in my profile\>ssh keys section. Now I can do git push :)


Tags: bitbucket-cloud

cloud

ssh-key
How do I set app password on Linux server
Asked by Niringiyimana Elie:

How do I set app password on Linux server


Answers:
author: Norbert C
body: Hi [@Niringiyimana Elie](/t5/user/viewprofilepage/user-id/4425562)

Thank you for contacting Atlassian Community, my name is Norbert and I'm a Bitbucket Cloud Support Engineer, it's nice to meet with you!

I would like to inform you that you can set up your Linux instance to save the credentials.

You can do it the following way:

```
git config --global credential.helper store

$ git clone http://bitbucket.org/workspace/repo.git
Username: <type your username>
Password: <type your password>

[after setting up the credentials]
$ git push
[your credentials are used automatically]
```

Please let us know how it goes, I'm here to help.

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


author: Florian PEREZ
body: Hello,

You tagged your issue as Bitbucket Cloud and asking for password on linux server.

Can you confirm you really target Bitbucket Cloud ?

What kind of password do you want to generate ?

Is this API related ?

comments: author: Niringiyimana Elie
body: I want to pull changes from Bitbucket using App password and it still shows error because Bitbucket switched to App password recently. For me I created App password but I want to set it into my Linux server to be able to pull.


Tags: bitbucket-cloud

cloud
Commit template message
Asked by Iulian:

Hello,

I am trying to create a template commit message in sourcetree, but no success. I have already tried with git config --global commit.template and to use prepare-commit-msg hook and it worked in both cases from the command line, but not in sourcetree. I have made research on internet and it seems that a lot of people have this problem. Is there any other solution or is a missing feature/limitation?

I am using SourceTree 1.6.21.0 on Windows 7.


Answers:
author: Marcin Wieczorek
body: Actually it seems to be a broken feature (at least support for commit.template) as it was already implemented 2 years ago:

<https://jira.atlassian.com/browse/SRCTREE-982>


author: Seth
body: I've never tried, but I'd guess it is a missing feature. If you don't get a helpful answer, submit a feature request to jira.atlassian.com, and put a link here as an answer so others can find it.
Is there a way to add a custom icon/button & functionality to the SourceTree User Interface?
Asked by Alex Close:

Hi all,

I am looking for a way to expand SourceTree. I understand that there are Custom Actions which can be utilised, however I was hoping for a way to expand the user interface by adding an extra button to the tool bar. Is this a possibility now or in the near future?

Many thanks,

Alex Close


Answers:
author: Seth
body: I don't think there is any way to modify SourceTree besides custom actions.

You could submit a feature request to jira.atlassian.com. If you do, put a link here so people who want to vote it up will be more likely to find it.


Tags: app

custom-field
Not all company GITHUB repositories are listed, why?
Asked by Lucas Molenaar:

After installation and during 1st start setup I enter my GitHub account and SourceTree lists most repositories but not all of them. All repositories are owned by the company and seemingly have the same configuration.

Could someone advise why some repos will not be listed by SourceTree but are available when I browse GitHub?


Answers:
author: Michael Bender
body: I filed a bug with Atlassian a long time ago about this. After months of back and forth where it was "my problem" and "we can't reproduce this" (despite very clear reproducible steps and multiple requests to Atlassian for a debug-enabled version of SourceTree so that I could run it and send them debug logs, they never provided me with this) they **finally** admitted they could reproduce it.

Still not fixed yet...

Here is the JIRA issue on this:

[SRCTREE-3064](https://jira.atlassian.com/browse/SRCTREE-3064)

Please vote on this and let Atlassian know we need this fixed sooner rather than later.

On the other hand, I have been moving away from using Source Tree to just doing all my git work from the command line since it's faster than fighting the tool.

Mike


author: Dennis Doomen
body: We have the same thing. I used the DVCS add-on at JIRA on-demand and added the correct credentials, but only the public repos are listed, not the private fork that particular Github account has.
How do I stop the repeatedly prompts for user name and password from sourcetree?
Asked by Doug Sands:

What can I do to stop sourcetree from popping up, almost at random, a prompt for username and password? I started it this morning, successfully pushed a file without entering any credentials, and after a few minutes the popup began again. What do i do? Sometimes it will not ask for a day or more. Other times I have to close the app to stop the annoyance. This has been going on for quite some time and I believe I have tried the different fixes suggested at various sites online. One thing is certain. The checkbox whose label reads "Remember Password" doesn't really work too well.


Answers:
author: Vitalii Petrychuk
body: Hi Doug,  
Have you tried the suggestion from SourceTree Knowledge Base (see below)? Seems like it should fix your issue.

[https://confluence.atlassian.com/display/SOURCETREEKB/Keep+Getting+Prompted+for+Password+when+'Save+to+Keychain'+is+Selected](https://confluence.atlassian.com/display/SOURCETREEKB/Keep+Getting+Prompted+for+Password+when+%27Save+to+Keychain%27+is+Selected)


author: rrudnicki
body: Hi Doug,

Are you running

sourcetree on Mac OS? If so, please check[this answer.](https://answers.atlassian.com/questions/48102/sourcetree-keeps-asking-for-login-and-password...)

@Vitalii Petrychuk, your link seems broken ![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad")

comments: author: Vitalii Petrychuk
body: Fixed, thanks a lot.


author: rrudnicki
body: Hi Vitalii, Good to hear you fixed that :).If you don't mind, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.


author: Vitalii Petrychuk
body: You mean accept your answer? I'm not the question's owner so I cannot :)


author: Doug Sands
body: Sorry for the slow response. I'm not used to checking here regularly. In the windows popup called Repository settings, the path is and has been correct. I am running SourceTree on Windows 7 Ultimate, 64 bit.
Accessing a GitLab server
Asked by KiwiET:

For our student projects, we use a GitLab server. Is it possible to add this as a remote repository in SourceTree?


Answers:
author: Johannes Kilian
body: Yes - for sure. You don't need to configure this in Sourcetree, since the Remote Repository configuration is part of the git repository itself. Sourcetree simply uses this configuration to talk to the server - no matter which server.

Depending of the capabilities of the server you might miss some features (I'm not quite sure about this) - but generally it should work well.


author: KiwiET
body: Yes, I have managed to setup the repositories so they will access the remote GitLab repository and it does seem to work. However, the Repository Browser has a Remote tag and I can get it to list my GitHub repositories but I don't seem to be able to add the GitLab as a remote repository. I was hoping that there might be a way to do this. I am sure that I am not the only person working with remote repository servers.

The nature of my work means there are repositories that I need to monitor but not necessarily have a local clone of that repository. The remote repository list seems like a nice way to track these.
What exactly does SourceTree "Pull origin/branchname into current branch" does?
Asked by Maris Seimanovs:

I could not find a tutorial for all SourceTree commands so I'm somewhat unsure if this command does what I think it does.

I have a branch which was branched from master some time ago. Let's call it BranchX.

Master branch has remote origin/master and BranchX also has origin/BranchX.

Consider these two scenarios:

1) Now some people have done their work on BranchX and I want to merge BranchX into master. Currently I have checked out master branch.

Can I use the command "Pull origin/BranchX into current branch" to fetch origin/BranchX into my local repo and then merge BranchX code into my current working copy (which is master)?

<br />

2) I'm working on BranchX and I want to update it with latest changes on origin/master.

Can I use the command "Pull origin/master into current branch" to fetch origin/master into my local repo and then merge master code into my current working copy (which is BranchX)?

<br />

Essentially - is "Pull origin/branchname into current branch" meant as a replacement for so-often used process:

checkout master

pull origin/master

checkout BranchX

merge master into BranchX

?

Or does it do something different or something more than I think?


Answers:
author: Tim Crall
body: I think it does exactly what you think it does
Commit problems with German characters using SourceTree
Asked by j_krawczyk:

Hello to everyone,

I have one problem with SourceTree since months. I am Delphi programmer and my IDE saves source files in standard ASCII format. In lines, where I am writing German comments (containing non-Latin letters like ?, ?, ?) there is not possible to commit them using "Stage hunk" button. I see the following error message then:
> 'git apply' failed with code 1: Checking patch xxx...  
> error: while searching for:
>
> OVNI_PREFIX = 'ovni_'; // Standardname f?r Videoschnittstellen-DLL
>
> error: patch failed: xxx:148  
> error: xxx: patch does not apply

I could commit the whole file and then everything is done, but committing only few lines is sometimes very useful for me.

I tried to change the file encoding into UTF8, but it does not help.

I am using embedded version of git (1.9.5).


Answers:
author: j_krawczyk
body: Thanks, I published the issue and it is active on this address: <https://jira.atlassian.com/browse/SRCTREEWIN-3810>


author: Seth
body: Or stage/commit those hunks from the command line.


author: Seth
body: Still might be a git bug, but SourceTree's not giving enough info about what commands it is running. I think you should post a bug report at jira.atlassian.com, and put a link here as an answer so others can find it.In the meantime, you may need to avoid non-Latin characters in your code.


author: j_krawczyk
body: Sorry, I meant "git add -p filename". I've corrected it in my comment later. It works in git without errors as I've mentioned, in SourceTree I receive the error on staging or discarding the hunk. Please look on this screenshot: <http://i.imgur.com/8wTsJx0.png>.


author: Seth
body: What if you try "git add -p"? This is more like the command sourcetree is running when you stage hunks.


author: j_krawczyk
body: Thank for your comment Seth. Yes, I tried with command "git add -p filename" and "git reset -p filename" and it does work without any error.


author: Seth
body: Try to commit from the command line. That'll clear up whether the bug is with SourceTree or Git.


Tags: git
How can you rename the licensee on a SourceTree license?
Asked by Jeremy Jacobson:

I have a SourceTree license and I was wondering if I could rename the "Licensed To" field. My company has since filed under a different name. I'd rather it be licensed to myself if possible, since it is under my personal Atlassian account. Any help would be appreciated.


Answers:
author: jaboj
body: I have same issue. Would like to rename "Licensed To" field.


author: Alexander Goncharenko
body: +1. I have the personal account too, but created it with the name of the company I no longer work at.
how do i connect a git repository which is in a windows server to sourcetree? what is the URL format to be added? pls help me.
Asked by Senthil Kumar Kandasamy:


Answers:
author: Seth
body: You just need the git URL.

This is not SourceTree specific, you'd probably have more luck asking on a site like StackOverflow where you'll find more git self-hosters (instead of just git self-hosters who use SourceTree as a client).