youngmon/atlassian-qna huggingface dataset:
Bitbucket Webhook is not triggering Jenkins job even webhook returns 200
Asked by sharat bhaskar:

I am using bitbucket cloud and jenkins is running on ec2 instance on the private network. Connection is well established between bitbucket and jenkins as when i run the job manually, the job shows the green status. However when i made the changes in the repo and it gets merged but the webhook is not using my app password and as a result the job is getting failed.

I am getting authentication failed and It's basically asking me to use the app password. I have already created it but still webhook is not using it. I am getting the response 200 in webhook means my webhook is able to reach the jenkins server but i am not sure why i am getting authentication failed.


Answers:
author: Mark C
body: Hi [@sharat bhaskar](/t5/user/viewprofilepage/user-id/4949047)

Welcome to the community.

I understand that you're using Bitbucket Cloud repository Webhooks to integrate to your Jenkins server running on an EC2 instance.  
The Webhooks triggers fine but in your Jenkins server, you're getting an authentication error when you made the changes in the repository and it gets merged.

Based on the description and my understanding, the Jenkins server is still picking up your old credentials instead of the App password.  
For this, would it be possible for you to try to clear your stored credentials related to Bitbucket Cloud in your EC2 instance and then try to re-authenticate again using your App password?

You can also refer to this [community post](https://community.atlassian.com/t5/Bitbucket-articles/Announcement-Bitbucket-Cloud-account-password-usage-for-Git-over/ba-p/1948231) for more information.

Hope it helps and do let me know how it goes.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
is it possible to not run on branch push pipeline when the latest push has a tag?
Asked by Siddhant:

i am using a tag based release. When i want to release i tag the commit with release-${version} and push it. But doing so, causes two pipelines to run one for the push on master and another for the tag. is it possible to just run tag pipeline and not the push pipeline if the latest pushed commit has a tag.


Answers:
author: Mark C
body: Hi [@Siddhant](/t5/user/viewprofilepage/user-id/4948948)

Welcome to the community.

Unfortunately, it's not possible to stop a branch push trigger when there's a specific tag on a push.  
As a workaround, you can add a script in the branch/default trigger that validates if a pushed commit has a specific tag.  
Then return **exit** command to stop executing the build further.

```
pipelines:  default:    - step:        name: Default trigger        script:          - # validate if there's a tag then return exit to stop executing the build further          - #Some scripts here  tags:    release-*:      - step:          name: Release          script:            - #Some scripts here
```

Hope it helps and do let me know if you have further questions that I can help with.

Regards,  
Mark C

comments: author: Siddhant
body: Thanks for replying.  
This will definitely save some of the build minutes...  
Btw, Is there any chance of this kind of feature being added in near future?


author: Mark C
body: Hi [@Siddhant](/t5/user/viewprofilepage/user-id/4948948)

We do have an existing feature request for it that can be located through this link. - <https://jira.atlassian.com/browse/BCLOUD-20192>  
You can upvote and watch it for now so that you'll be notified of any updates from our team when the feature becomes available on Bitbucket Cloud.  
![](https://getsupport.atlassian.com/images/icons/emoticons/information.png) Please do note that we don't have an exact ETA for the feature request as all new features will be implemented according to our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).

Hope it helps and let me know if you have further questions.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
Need git gc on remote
Asked by EtienneEtienneEtienne:

Hi,  

I migrated a ton of files to LFS. I need a git gc to be able to work on my repo again. It is a shared workspace so I can't do it through the experimental feature.  

\<repo_url_removed\>

Thank you


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

I ran a git gc on the repo and its size is 2.6 GB now.

Does this agree with the size of your local repo after you migrated files to LFS?

Just a heads up, I removed the repo url from your post to comply with our privacy policy.

Kind regards,  
Theodora

comments: author: EtienneEtienneEtienne
body: Hi,  

Yes sorry for the url, didn't know how you would find the repo without me linking it.  

Repo size shouldve been way less. Think my push failed after my lfs migrate. I did the whole thing again and double checked it, should be good ! Could you run it again ?  

Thank you for your time


author: Theodora Boudale
body: Hi [@EtienneEtienneEtienne](/t5/user/viewprofilepage/user-id/4948942),

Of course, I ran another git gc on the repo, its size is 33.2 MB.

Does the size agree with your local one now?

No worries about the repo url. Alternatively, you can just mention the last two letters of the repo name, or the repo name masked (with some asterisks included and showing only a few letters that can help us identify it), and we can then check which one it is from the ones you have access to.

Kind regards,  
Theodora


author: EtienneEtienneEtienne
body: Way better ! Thank you Theodora for your time, have a nice day.


author: Theodora Boudale
body: You are very welcome, I'm glad to have helped!

Please feel free to reach out if you ever need anything else.

Have a nice day too,  
Theodora


author: Robert Wen_ReleaseTEAM_
body: Just escalated this so someone from Atlassian can do it.


Tags: atl-rvw

bitbucket-cloud

cloud

garbage-collection

git
Why cannot I mark a conflicted file as unresolved in SourceTree?
Asked by Julius Niiniranta:

I'm trying to resolve conflicts in a rebase process. I selected a conflicted file and started resolving it with Apple's FileMerge, but had to quit without saving changes. For some reason SourceTree marked the file as resolved. I want to mark it as unresolved, but the option is disabled. Why? How can continue resolving it?


Answers:
author: Seth
body: Try choosing "Restart Merge" in the right-click menu for that file.
Unable to create .git/index.lock: File exists
Asked by saifullah khan:

There was no such issue with the previous version.

When I upgraded Source Tree to v 1.9.6.1 this is a major issue with this version.

Kindly check this issue.


Answers:
author: Seth
body: There have been lots of bug reports on this over the years. Atlassian marked the original bug as resolved, but it doesn't appear to be. You might vote on this issue, and comment that it is still broken in 1.9.6.1: <https://jira.atlassian.com/browse/SRCTREEWIN-783>
Different MacOS/Win UI
Asked by ?????? ???????:

There are checkbox and yellow button inside "Unstaged files" on MacOS version, but on Win there is yellow button only. How can I display checkboxes again?

ST Version 2.3.1 (69)


Answers:
author: Chris Catto
body: File Status in top left corner might be the view you are looking for now sure though; might not display the chkbox in Windows.

Screen Shot 2016-10-18 at 8.31.35 AM.png  
[](https://community.atlassian.com/t5/Sourcetree-questions/Different-MacOS-Win-UI/qaq-p/63458?attachment-id=11486){#link_117283b6f9564f}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/1838/1/Screen%20Shot%202016-10-18%20at%208.31.35%20AM.png){#display_117283b6f9564f_0}

comments: author: ?????? ???????
body: SourceTree (Win)2.png

If I choose "No staging" then checkboxes appear.

1.png
Stash list
Asked by Nixon Nova:

Hi Guys,

I can't seem to find my stash in my source tree UI. It used to be somewhere below that repo list but it has gone missing.

Using git stash list command from console can still output properly. Tried the pop up menu, still no luck. Please help.  
[](https://community.atlassian.com/t5/Sourcetree-questions/Stash-list/qaq-p/168204?attachment-id=10369){#link_1168c7dcbabc2b}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/4953/1/image2016-10-17%2015%3A56%3A9.png){#display_1168c7dcbabc2b_0}


Answers:
author: Seth
body: Should be between Remotes and Submodules (if you have submodules):

image2016-10-17 8:20:47.png

If you don't have any stashes, it won't show up. If you do have stashes and there isn't a stashes section there, you may be experiencing a bug. Try restarting SourceTree, maybe?  
[](https://community.atlassian.com/t5/Sourcetree-questions/Stash-list/qaq-p/168204?attachment-id=8106){#link_1168c7e08a153c}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/4954/1/image2016-10-17%208%3A20%3A47.png){#display_1168c7e08a153c_0}
How to set global git config
Asked by Michael Nguyen:

How do you specify autocrlf = true for all repositories in SourceTree ?

SourceTree allows you to specify a git config for each repository, so you'd need to manually add autocrlf = true to each config file. Does SourceTree allow you to specify a global git config for all repositories ?

Thanks.


Answers:
author: Johannes Kilian
body: As far as I know, you cannot do this with SourceTree directly - but as usual, git-commandline is your friend:

You've got three levels of .gitconfig - which are stored at different locations

* local - i.e. within your single repository - stored within your .git-folder of your project
* global - i.e. for all of YOUR repositories - stored somewhere like %USERPROFILE%
* system - i.e for all repositories of all users on your system - on windows systems this is normally stored where your git installation resides

You set options within those three configuration files using a dedicated option:

**git config --local/--global/--system ....**

See: <https://git-scm.com/docs/git-config>

Hope that helps

Cheers

Johannes

comments: author: Seth
body: Yeah, definitely recommend using git config --global, but if any of your repositories have autocrlf set to something else locally, that will take precedence over the global setting.


author: Johannes Kilian
body: Seth is right: you have to consider that there is a precedence: local overwrites global overwrites system


author: Pawel Cioch
body: On Windows 7 (maybe same or similar for Windows 10) for Visual Studio and git command line, your global config is in

%USERPROFILE%\\.gitconfig

(dot is in front of the file)

but this is not honored by SourceTree at least in Git Embedded mode, and the config is in

%USERPROFILE%\\AppData\\Local\\Atlassian\\SourceTree\\git_local\\mingw32\\etc\\gitconfig

(no dot in front of the file)

\[I needed to update both files to modify my global git settings for git command and SourceTree\]

Here is more that I found about it because some settings are still overridden by some other 'global' config [https://stackoverflow.com/a/55839051/1818723](https://stackoverflow.com/a/55839051/1818723?)
Where is the "Show in Finder button"?
Asked by Antonio Angelo:

In SourceTree I cannot find the "Show in Finder button" cited in the sentence: "...From SourceTree, click the Show in Finder button."

Thank you in advance.


Answers:
author: Chris Catto
body: When SourceTree is open ( we may need to have a branch checked out) ; in the top right corner there is "Open in Finder"

Screen Shot 2016-10-17 at 9.10.06 AM.png

Hope this helps!  
[](https://community.atlassian.com/t5/Sourcetree-questions/Where-is-the-quot-Show-in-Finder-button-quot/qaq-p/216833?attachment-id=505){#link_1168c7f78ffcd8}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/6410/1/Screen%20Shot%202016-10-17%20at%209.10.06%20AM.png){#display_1168c7f78ffcd8_0}
Open in terminal window closes before it completely opens
Asked by Carl Kelley:

When I click on the Terminal icon at the top of SourceTree 1.9.6.1, the window starts to open and then closes without an error message. I couldn't find anything in the Application Event Log that looked relevant. I tried repairing the setup.

What else can I do to fix this glitch?


Answers:
author: Carl Kelley
body: I rebooted and the problem went away. I am able to open the SourceTree terminal window once again.
Column widths keep being reset to an inappropriate total width
Asked by Dan Neely:

The column widths in the upper right table of commits won't keep the overall widths I set for them. While the application is maximized Sourcetree keeps resizing them downward to only use half of the available space obscuring part of the time stamp and most of the description in the process.

It might be a coincidence, but the forced resizings are leaving the rightmost edge of the last column at 1264 pixels, which with 16 more for the vertical scrollbar suggests that it's resizing on the assumption that it's on an elderly 1280x#### screen.

I'm using v 1.9.6.1 for Windows.


Answers:
author: Dan Neely
body: I think I've figured out what's happening and have found a work around. It's definitely a bug in the application though.

My non-maximized window size was 1280 pixels wide, and even while maximized that's the width that the application is using to trigger an auto-resize of the columns. Manually resizing the window to the full width of my monitor and then maximizing it has suppressed the problem because the incorrect source its using for the overall dialog width (width non-maximized) is the same as the actual width (while maximized).


Tags: bug
How to enable checkbox when select file?
Asked by ttn:

Hi, please check this image.  
SourceTree version: 1.9.6.1

1476087889.png  
[](https://community.atlassian.com/t5/Sourcetree-questions/How-to-enable-checkbox-when-select-file/qaq-p/48136?attachment-id=9122){#link_117284505b3a7c}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/1450/1/1476087889.png){#display_117284505b3a7c_0}


Answers:
author: Seth
body: Checkboxes were removed in, I think, version 1.9.

If you are trying to select multiple files, you can control/shift click. Then you can Stage Selected, or right click for other operations on the selected files (Add, Remove, Discard, Ignore, etc).

comments: author: ttn
body: Inconvenience...


author: Seth
body: Here's a bug report asking for the checkboxes to be restored. You can watch it if you like: <https://jira.atlassian.com/browse/SRCTREEWIN-5947>

For comparison sake, here's an old bug complaining about the behavior when they added the checkbox: <https://jira.atlassian.com/browse/SRCTREEWIN-2456>
Can't open an external diff between two commits
Asked by Benny Lifschitz:

I am using SourceTree on Windows and I am fully up to date.  
I am trying to do a git diff in order to compare between 2 commits but after marking 2 commits (pressing cmd and mouse click) I cant find the git diff option.


Answers:
author: Benny Lifschitz
body: Hi,

thanks!

I actually found a way to do it by using external diff.

1. choosing 2 commits
2. mark relevant file
3. go to action in above tab
4. choose external dif

image2016-10-10 15:31:35.png

[](https://community.atlassian.com/t5/Sourcetree-questions/Can-t-open-an-external-diff-between-two-commits/qaq-p/28884?attachment-id=2790){#link_1168c88319eee0}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/863/1/image2016-10-10%2015%3A31%3A35.png){#display_1168c88319eee0_0}


author: Seth
body: You can't open diff for the commit itself, only for one file at a time:

image2016-10-10 8:8:57.png  
[](https://community.atlassian.com/t5/Sourcetree-questions/Can-t-open-an-external-diff-between-two-commits/qaq-p/28884?attachment-id=1967){#link_1168c8889871cd}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/862/1/image2016-10-10%208%3A8%3A57.png){#display_1168c8889871cd_0}


Tags: windows
How to upgrade from sourceTree 1.7 to 1.9
Asked by davidchengm:

Can I just install 1.9 over 1.7 or have to uninstall 1.7 first?

Do I need to back up the configuration/license?

Are there impact on check out repositories?


Answers:
author: Seth
body: I believe the 1.9 installer will replace 1.7, no need to uninstall.

Configurations should be preserved.

NO impact on repositories.

The will probably be a slight hitch with the license. In 1.8, Atlassian changed how licenses work. During/after installation of 1.9, you'll need to log in with an Atlassian ID in order for the software to register. I don't know if there is a reliable solution yet for users trying to install SourceTree in isolated (no internet) environments.
Not be able to log in to the Sourcetree
Asked by Shogo Yanahira:

I will start the Sourcetree, when I try enter my account information from the "Use an existing account" to log in, and

"Oops, you've made a malformed request.If you came here from a link we sent you, please contact support."

is displayed, not be able to log in.

Entered information is should not wrong, because it can log in to the Bitbucket in the browser.

If you know the solution, I want you to tell me.


Answers:
author: ttn
body: Same. Have that problem, can not fix that....
How can each repository have his own bitbucket static website address ?
Asked by Alon Idelson:

Hi,  
How can each repository have his own bitbucket static website address?

Right now we can do:  
<https://accountname.bitbucket.org/subdir1forproject1><https://accountname.bitbucket.org/subdir2forproject2><https://accountname.bitbucket.org/subdir3forproject3>

But that, I think, can be done only when all our projects are on the **same** repository,

and we want them to be on **different** repositories. A repository for each project.  
How can we do that?

Thanks.


Answers:
author: Tim Pettersen
body: Hi Alon!

Right now Bitbucket only supports one repository static site per account. However there is a Bitbucket integration available -- via [Aerobatic](https://www.aerobatic.com/) -- that allows you to deploy any repository as a static site, and has some other neat features like custom domains.

cheers,

Tim


Tags: bitbucket

repository

static
About license
Asked by Jeyson Quiroga:

I need to know the type of license that have Source tree, it's totally free without limit or depends of the use?


Answers:
author: Rick Culpepper
body: Yes, SourceTree is absolutely free without time or feature limits. See the first question in the [SourceTree FAQ](https://www.sourcetreeapp.com/faq/).

However, you must register for a FREE license key. You can start the registration process by going to the [SourceTree Registration Page](https://www.sourcetreeapp.com/register/).
is there a way to filter projects by search
Asked by Karim Roumani:

In Sourcetree On the left pane can do we have a search box to quickly filter as we type the name of a repo/project? There are so many projects and its hard to nav through them.


Answers:
author: Johannes Kilian
body: Atlassian does not seem to have any interest in this ...

This is a long outstanding, ignored feature request:

* <https://jira.atlassian.com/browse/SRCTREEWIN-890>
* <https://jira.atlassian.com/browse/SRCTREEWIN-804>


author: Karim Roumani
body: I understand this is low priority but now developers have many projects and it should be hard to add. Search should be the new way of doing or finding just about anything these days. It would be a good low priority issue go get through
SourceTree crashes on startup
Asked by Steve Curtis:

SourceTree is crashing on startup. I've tried unistalling, removing the folders at %localappdata%\\Atlassian and then installing 1.9.6.1 again.

In the windows event log I have the following:

Application: SourceTree.exe

Framework Version: v4.0.30319

Description: The process was terminated due to an unhandled exception.

Exception Info: System.InvalidOperationException

at System.Windows.Application.set_ShutdownMode(System.Windows.ShutdownMode)

Exception Info: System.Windows.Markup.XamlParseException

at System.Windows.Markup.XamlReader.RewrapException(System.Exception, System.Xaml.IXamlLineInfo, System.Uri)

at System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader, System.Xaml.IXamlObjectWriterFactory, Boolean, System.Object, System.Xaml.XamlObjectWriterSettings, System.Uri)

at System.Windows.Markup.WpfXamlLoader.LoadBaml(System.Xaml.XamlReader, Boolean, System.Object, System.Xaml.Permissions.XamlAccessLevel, System.Uri)

at System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream, System.Windows.Markup.ParserContext, System.Object, Boolean)

at SourceTree.App.Main()


Answers:
author: Phil Voyle
body: I don't have an answer for this, but deleting my Atlassian folder helped with my problem, so thanks
I can't install SourceTree
Asked by Antonio Perea:

When I execute setup.exe and I have to Log In, I click on "use an existing account" and the window opened has no conection, if I click on "Go To My Atlassian" I can log in , but I can't continue the install.

What can I do?


Answers:
author: Antonio Perea
body: Solved,

Open IE

Tools tab \> Internet Options \> restore Adanced Settings and Reset Internet Explorer settings.   
Restart IE.
How can I make Sourcetree recognize .org files as text?
Asked by shinoto:

When I want to check diff of .org files in Sourcetree, nothing is shown. When I mark the file .md, or so, Sourcetree has no problems. In the terminal, the diff with .org file works well. So showing no diff seems to be a problem of the extension for Sourcetree.

Thanks!


Answers:
author: shinoto
body: Thanks for taking care of this problem.

1. The file is UTF8 with Unix LF, and it is still small.
2. Then I created a new repo with a .txt file and its duplicate (duplicated in the finder, renamed .org) -- both worked in that repo.
3. So I tried new changes in the .org file, but it stays unreadable. After committing the unreadable changes and adding something new, it still does not show the diff.
4. So I copied the whole text into a new file and naming this differently but with .org extension, this was recognized. Committing, adding changes etc. works nicely.

I remember that the problem file could be read when I added it to the repo, so something must have gone wrong during the first commit (repo is young).

<br />

The contents of the small repo (just this .org file) is not top secret. I will now start a new repo and delete this one, and if this helps, I can send you an archive of the screwed repo to check what went wrong.

comments: author: Seth
body: Don't send them to me, I'm just a SourceTree user. Might be useful to post it to that bug though: <https://jira.atlassian.com/browse/SRCTREEWIN-5307>


author: shinoto
body: Seth,

sorry for mixing that up! Thanks for your help, was very kind!

Maria


author: Seth
body: In your .gitattributes file, try adding:

```
*.org diff
```

<https://git-scm.com/docs/gitattributes>

comments: author: shinoto
body: I thought so, but the problem then should be between .org and git, but .org files are recognized as text by git itselft when used in the terminal.

I tried your suggestions though, but it does not work. Put the .gitattributes file at the same place as the .gitignore file and entered the text. Still, the window just shows grey.

Seems logical to me, is there a problem with Sourcetree?


author: Seth
body: Well, let's see what else. This may not be relevant, since you said git works, but you can check it (UTF-16 vs UTF-8): <https://answers.atlassian.com/questions/116001>

Maybe the files are too big? <https://answers.atlassian.com/questions/327337>

Try with new changes to .org files? <https://answers.atlassian.com/questions/16882764>

Another question suggesting it might have problems with committed changes: <https://answers.atlassian.com/questions/21630283>

If it turns out to be a problem when it's committed, but not when it's unstaged, post some details and vote up this bug: <https://jira.atlassian.com/browse/SRCTREEWIN-5307>